Thread: [Dev-C++] wxwindows problems again and again...
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Neszt T. <ne...@ss...> - 2003-06-18 10:40:38
|
Hello! I know, there were many questions and answers regarding wxwindows using with dev-c++, but I'm still in trouble without solution. I decided to try to solve again. I downloaded the newest version of wxwindows (2.4.1). Atfer half an our I knew, I failed again. Than I found the fantastic webpage: http://www.wxwindows.org/devcpp.htm In the dev-C++ 4 section there are a lot of links which is not works, for example, ftp://biolpc22.york.ac.uk/pub/ports/mingw32/extra.zip So, I tried to do that step by step, but I couldn't. And what is the error message? At this point of time this: In file included from C:\DEV-C_~1\Include\wx\memory.h:20, from C:\DEV-C_~1\Include\wx\object.h:25, from C:\DEV-C_~1\Include\wx\wx.h:16, from d:\work\programming\wx1\controls\controls1.cpp:23: C:\DEV-C_~1\Include\wx\string.h:164: #error "Please define string case-insensitive compare for your OS/compiler" In file included from C:\DEV-C_~1\Include\wx\checklst.h:34, from C:\DEV-C_~1\Include\wx\wx.h:55, from d:\work\programming\wx1\controls\controls1.cpp:23: C:\DEV-C_~1\Include\wx\msw\checklst.h:20: #error "wxCheckListBox class requires owner-drawn functionality." Sorry for my bad english, Regards, Neszt Tibor |
|
From: <or...@vp...> - 2003-06-19 18:35:34
|
Hello! Hmmm..., now which language should I use? :) No matter, I'll use English, so others can also read it. wxWindows requires a LOT of #defines (or -Dxxx on the command line), which are used by the header files, to provide cross-platformness. The errors you got, were because you didn't actually specify which OS do you compile for. That's why you get errors about case insensitive string-comparison functions, as it is: stricmp() under Windows, but strcasecmp() under Linux (or UNIX?), so wxWindows cannot "find it out". That's why you need to specify the OS, THEN wxWindows WILL be able to "find out" the proper comparison function. So, what flags do you need? Well, you can try digging it out from the original wxWindows distribution's makefile.g95 and makeg95.env and such files, OR you might try using these (my digging :) -D_X86_=1 -DWIN32 -D_WIN32 -DWINVER=0x0400 -D__WIN95__ -D__GNUWIN32__ -D__WIN32__ -DSTRICT -DHAVE_W32API_H -D__WXMSW__ -D__WINDOWS__ Tell me if you succed. -- Szervusz! Balázs U.I.: Bocs a késői válaszért, de éppen ma érettségiztem, úgyhogy kénytelen voltam "mellőzni" a gépelést az utóbbi 4 napban. |
|
From: <or...@vp...> - 2003-06-19 21:31:28
|
Brian Ackermann wrote: > I've been following this thread for a while, as I've had some similar > issues at various points....and now I have a question (rather, I had it > before, and just remembered now to ask it...) > > in the defines you gave > -D_X86_=1 -DWIN32 -D_WIN32 -DWINVER=0x0400 -D__WIN95__ -D__GNUWIN32__ > -D__WIN32__ -DSTRICT -DHAVE_W32API_H -D__WXMSW__ -D__WINDOWS__ > > I see three things that look the same (nearly) > > Whats the difference between > -DWIN32 -D_WIN32 -D__WIN32__ If plunge yourself deep into the wxWindows code (especially into the headers), you'll notice that some of those flags are needed. Some are defined by the others, some are not. Something like: #ifdef WIN32 # define _WIN32 #endif etc. I don't recall exactly, which are defined, which are not. So, it may be true, that not all of them is needed, but perhaps they are all needed. All I know is, that when I removed most flags I could, but still get my program to compile (minimal flags, WIN32 or one of them only, and a lot others removed) resulted in a run time crash. So, I suppose those defines do something good, so I decided to define them all. After all: these flags were digged out by me from the wxWindows MINGW makefiles (makeg95.env), and wxWindows uses these flags for it's sample programs too, so I think they are a must. I am talking about 2.4.0 however, but I don't think 2.4.1 has changed radically in this field... I have played around with it for some time. Maybe you can try different settings too. So, all in all: those defines are essential for a working wxWindows program. Don't ask why! I don't know. All I know, when they are all specified, things work, when not, things crash (but compile). Odd... :) I hope I made things more clear. -- Regards, Balázs |
|
From: Yeoh H. <ye...@ye...> - 2003-06-20 01:53:49
|
Dear fellow Dev-C++ users, Dev-C++ is a great tool and with its many DevPaks, it is even more useful. But sometimes you want to use some C++ library but couldn't find any DevPaks for it. You don't really need a DevPak. What you need are the .a library file(s) and the C++ header files. If the C++ library comes with source and also contains the build scripts, you might be able to create the required .a files. This is possible only if the configure scripts are also built for MinGW. What follows is an account of one C++ adventure. If you want to know how to create the required wxWindows .a library file for use with Dev-C++ 4.9.8.0 (GCC 3.2), here's some information for you. Download the HOW-TO at this URL: http://www.yeohhs.com/shareware/wxMSWandDevCppV-1.0.zip (File Size: 3.4K) Best Regards, Yeoh -- P.S. More Free downloads for Dev-C++ users at http://www.yeohhs.com/free/portal.asp |
|
From: Ioannis V. <iv...@em...> - 2003-06-20 02:52:19
|
Keep up the good work Yeoh! Ioannis Vranos * Programming pages: http://www.noicys.freeurl.com * Alternative URL 1: http://run.to/noicys * Alternative URL 2: http://www.noicys.cjb.net > -----Original Message----- > From: dev...@li... > [mailto:dev...@li...] On Behalf > Of Yeoh HS > Sent: Friday, June 20, 2003 4:54 AM > To: dev...@li... > Subject: [Dev-C++] FREE download: a HOW-TO use wxWindows with Dev-C++ > > > Dear fellow Dev-C++ users, > > Dev-C++ is a great tool and with its many DevPaks, it is even > more useful. > But sometimes you want to use some C++ library but couldn't > find any DevPaks > for it. You don't really need a DevPak. What you need are the > .a library > file(s) and the C++ header files. If the C++ library comes > with source and > also contains the build scripts, you might be able to create > the required .a > files. This is possible only if the configure scripts are > also built for > MinGW. What follows is an account of one C++ adventure. > > If you want to know how to create the required wxWindows .a > library file for > use with Dev-C++ 4.9.8.0 (GCC 3.2), here's some information for you. > > Download the HOW-TO at this URL: > http://www.yeohhs.com/shareware/wxMSWandDevCppV-1.0.zip > (File Size: 3.4K) > > Best Regards, > Yeoh > -- > P.S. More Free downloads for Dev-C++ users at > http://www.yeohhs.com/free/portal.asp > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: INetU > Attention Web Developers & Consultants: Become An INetU > Hosting Partner. > Refer Dedicated Servers. We Manage Them. You Get 10% Monthly > Commission! > INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |
|
From: <or...@vp...> - 2003-06-20 10:44:04
|
Yeoh HS wrote: > Dear fellow Dev-C++ users, > > Dev-C++ is a great tool and with its many DevPaks, it is even more useful. > But sometimes you want to use some C++ library but couldn't find any DevPaks > for it. You don't really need a DevPak. What you need are the .a library > file(s) and the C++ header files. If the C++ library comes with source and > also contains the build scripts, you might be able to create the required .a > files. This is possible only if the configure scripts are also built for > MinGW. What follows is an account of one C++ adventure. > > If you want to know how to create the required wxWindows .a library file for > use with Dev-C++ 4.9.8.0 (GCC 3.2), here's some information for you. > > Download the HOW-TO at this URL: > http://www.yeohhs.com/shareware/wxMSWandDevCppV-1.0.zip > (File Size: 3.4K) That's fine. But why not use the makefiles provided by wxWindows to build under MinGW, src/makefile.g95 and such? It builds the whole stuff. And also a LOT of options can be specified in include/wx/mswsetup.h (OpenGL, and MANY MANY other things) to reduce the library, or provide backward compatibility with older wxWindows programs. Though you need to edit it before the start of the compilation. -- Regards, Balázs |
|
From: Yeoh H. <ye...@ye...> - 2003-06-21 01:32:31
|
----- Original Message ----- From: "OROSZI Bal=E1zs" <or...@vp...> To: <dev...@li...> Sent: Friday, June 20, 2003 6:44 PM Subject: Re: [Dev-C++] FREE download: a HOW-TO use wxWindows with Dev-C++ > That's fine. But why not use the makefiles provided by wxWindows to > build under MinGW, src/makefile.g95 and such? It builds the whole stuff. > And also a LOT of options can be specified in include/wx/mswsetup.h > (OpenGL, and MANY MANY other things) to reduce the library, or provide > backward compatibility with older wxWindows programs. Though you need t= o > edit it before the start of the compilation. > > -- > Regards, > Bal=E1zs > Hi Bal=E1zs, Thanks for this information. I always welcome more than one solution. :-) Best Regards, Yeoh -- |
|
From: Brian J. A. <bri...@gm...> - 2003-06-20 11:50:26
|
Yeoh, I shall look into this immediately! Thank you, this is exactly what I've been looking for Brian Ackermann Yeoh HS wrote: >If you want to know how to create the required wxWindows .a library file for >use with Dev-C++ 4.9.8.0 (GCC 3.2), here's some information for you. > >Download the HOW-TO at this URL: >http://www.yeohhs.com/shareware/wxMSWandDevCppV-1.0.zip >(File Size: 3.4K) > >Best Regards, >Yeoh > > |
|
From: Brian A. <bri...@gm...> - 2003-06-20 14:14:50
|
Yeoh, and others I've done according to the instructions in this document, and, unfortunately I get the same problem I had gotten before. The application compiles (but Dev-Cpp cannot run it, I must go through the explorer for that...) but when it executes, immediately it generates an error The exception unknown software exception (0xc00000fd) occurred in the application at location 0x0040d40d. However, the application will compile if I do a "make -f makefile.unx" the application compiles AND RUNS just fine.... Where am I going wrong? Brian Ackermann Yeoh HS wrote: >Dear fellow Dev-C++ users, > >Dev-C++ is a great tool and with its many DevPaks, it is even more useful. >But sometimes you want to use some C++ library but couldn't find any DevPaks >for it. You don't really need a DevPak. What you need are the .a library >file(s) and the C++ header files. If the C++ library comes with source and >also contains the build scripts, you might be able to create the required .a >files. This is possible only if the configure scripts are also built for >MinGW. What follows is an account of one C++ adventure. > >If you want to know how to create the required wxWindows .a library file for >use with Dev-C++ 4.9.8.0 (GCC 3.2), here's some information for you. > >Download the HOW-TO at this URL: >http://www.yeohhs.com/shareware/wxMSWandDevCppV-1.0.zip >(File Size: 3.4K) > >Best Regards, >Yeoh >-- >P.S. More Free downloads for Dev-C++ users at >http://www.yeohhs.com/free/portal.asp > > > > >------------------------------------------------------- >This SF.Net email is sponsored by: INetU >Attention Web Developers & Consultants: Become An INetU Hosting Partner. >Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! >INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php >_______________________________________________ >Dev-cpp-users mailing list >Dev...@li... >TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm >https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > > > |
|
From: Yeoh H. <ye...@ye...> - 2003-06-21 01:32:32
|
----- Original Message ----- From: "Brian Ackermann" <bri...@gm...> To: <dev...@li...> Sent: Friday, June 20, 2003 10:14 PM Subject: Re: [Dev-C++] FREE download: a HOW-TO use wxWindows with Dev-C++ > Yeoh, and others > > I've done according to the instructions in this document, and, > unfortunately I get the same problem I had gotten before. The > application compiles (but Dev-Cpp cannot run it, I must go through the > explorer for that...) but when it executes, immediately it generates an > error > > The exception unknown software exception (0xc00000fd) occurred in the > application at location 0x0040d40d. > > However, the application will compile if I do a "make -f makefile.unx" > the application compiles AND RUNS just fine.... > > Where am I going wrong? > > Brian Ackermann > > Hi Brian, I see from your compile log that you've built the debug version of version 2.5.0. When you created your Dev-C++ project, where did you get the compiler defines and linker flags? Is it from the wx-config file? When you do "make -f makefile.unx", the wx-config file is used in the build process. Since this works, you might want to take a look at wx-config file to see the compiler defines and linker flags and compare them with your Dev-C++ project settings. Best Regards, Yeoh -- P.S. I'm off on a trip, so will be away from the pc for a week or so. :-) |
|
From: Brian A. <bri...@gm...> - 2003-06-23 17:26:37
|
Well, here's the part that works... ================================ bja3622@ANN /c/wx/samples/minimal $ make -f makefile.unx c++ -c `wx-config --cxxflags` -o minimal.o minimal.cpp c++ -o minimal minimal.o `wx-config --libs` ================================ and my flags look like this :: bja3622@ANN /c/wx/samples/minimal $ wx-config --cxxflags -I/usr/local/lib/wx/include/mswd-2.5 -D__WXDEBUG__ -D__WXMSW__ -mthreads -fno-pcc-struct-return bja3622@ANN /c/wx/samples/minimal $ wx-config --libs -L/usr/local/lib -Wl,--subsystem,windows -mwindows -mthreads /usr/local/lib/libwxmsw250d.a -ltiff -lrpcrt4 -loleaut32 -lole32 -luuid -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32 ================================ And this is the make output from Dev-Cpp $ make -f makefile.win g++.exe -c minimal.cpp -o minimal.o -I"C:/Dev-Cpp/include/c++" -I"C:/Dev-Cpp/include/c++/mingw32" -I"C:/Dev-Cpp/include/c++/backward" -I"C:/Dev-Cpp/include" -I"C:/msys/1.0/local/include" -I"C:/msys/1.0/local/lib/wx/include/mswd-2.5" -D__WXDEBUG__ -D__WXMSW__ -D__GNUWIN32__ -mthreads -fno-pcc-struct-return windres.exe -i Project2_private.rc -I rc -o Project2_private.res -O coff --include-dir C:/msys/1.0/local/include g++.exe minimal.o Project2_private.res -o "Project2.exe" -L"C:/Dev-Cpp/lib" -L"C:/msys/1.0/local/lib/wx" -mwindows -Wl,--subsystem,windows -mwindows -mthreads C:/wx/mswd/lib/libwxmsw250d.a -ltiff -lrpcrt4 -loleaut32 -lole32 -luuid -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32 ================================ Aside from the inclusion of -D__GNUWIN32__ the compiler options are the same (plus a bunch of include directories, maybe relevant, maybe not...I don't know how to tell) Same story with the libs too...the only difference is the -L"..." flags.... I guess the culprit must be right here.... Brian Ackermann Yeoh HS wrote: >----- Original Message ----- >From: "Brian Ackermann" <bri...@gm...> >To: <dev...@li...> >Sent: Friday, June 20, 2003 10:14 PM >Subject: Re: [Dev-C++] FREE download: a HOW-TO use wxWindows with Dev-C++ > > > > >>Yeoh, and others >> >>I've done according to the instructions in this document, and, >>unfortunately I get the same problem I had gotten before. The >>application compiles (but Dev-Cpp cannot run it, I must go through the >>explorer for that...) but when it executes, immediately it generates an >>error >> >>The exception unknown software exception (0xc00000fd) occurred in the >>application at location 0x0040d40d. >> >>However, the application will compile if I do a "make -f makefile.unx" >>the application compiles AND RUNS just fine.... >> >>Where am I going wrong? >> >>Brian Ackermann >> >> >> >> >Hi Brian, > >I see from your compile log that you've built the debug version of version >2.5.0. When you created your Dev-C++ project, where did you get the compiler >defines and linker flags? Is it from the wx-config file? > >When you do "make -f makefile.unx", the wx-config file is used in the build >process. >Since this works, you might want to take a look at wx-config file to see the >compiler defines and linker flags and compare them with your Dev-C++ project >settings. > >Best Regards, >Yeoh >-- >P.S. I'm off on a trip, so will be away from the pc for a week or so. :-) > > > > >------------------------------------------------------- >This SF.Net email is sponsored by: INetU >Attention Web Developers & Consultants: Become An INetU Hosting Partner. >Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! >INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php >_______________________________________________ >Dev-cpp-users mailing list >Dev...@li... >TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm >https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > > > |
|
From: Brian A. <bri...@gm...> - 2003-06-20 14:16:16
|
Oh, heres a copy of my compile log for Dev-Cpp ======================== Compiler: Default compiler Building Makefile: "C:\wx\samples\minimal\Makefile.win" Executing make clean rm -f minimal.o Project2_private.res Project2.exe g++.exe -c minimal.cpp -o minimal.o -I"C:/Dev-Cpp/include/c++" -I"C:/Dev-Cpp/include/c++/mingw32" -I"C:/Dev-Cpp/include/c++/backward" -I"C:/Dev-Cpp/include" -I"C:/msys/1.0/local/include" -I"C:/msys/1.0/local/lib/wx/include/mswd-2.5" -D_WIN32_IE=0x400 -D__WXMSW__ -mthreads -fno-pcc-struct-return -O2 -MMD -mthreads -Wall -D__GNUWIN32__ -D__WXDEBUG__ windres.exe -i Project2_private.rc -I rc -o Project2_private.res -O coff --include-dir C:/msys/1.0/local/include g++.exe minimal.o Project2_private.res -o "Project2.exe" -L"C:/Dev-Cpp/lib" -L"C:/msys/1.0/local/lib/wx" -mwindows ../../../msys/1.0/local/lib/libwxmsw250d.a -Wl,--subsystem,windows -mwindows -mthreads -lrpcrt4 -loleaut32 -lole32 -luuid -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32 -s Execution terminated Compilation successful ======================== Yeoh HS wrote: >Dear fellow Dev-C++ users, > >Dev-C++ is a great tool and with its many DevPaks, it is even more useful. >But sometimes you want to use some C++ library but couldn't find any DevPaks >for it. You don't really need a DevPak. What you need are the .a library >file(s) and the C++ header files. If the C++ library comes with source and >also contains the build scripts, you might be able to create the required .a >files. This is possible only if the configure scripts are also built for >MinGW. What follows is an account of one C++ adventure. > >If you want to know how to create the required wxWindows .a library file for >use with Dev-C++ 4.9.8.0 (GCC 3.2), here's some information for you. > >Download the HOW-TO at this URL: >http://www.yeohhs.com/shareware/wxMSWandDevCppV-1.0.zip >(File Size: 3.4K) > >Best Regards, >Yeoh >-- >P.S. More Free downloads for Dev-C++ users at >http://www.yeohhs.com/free/portal.asp > > > > >------------------------------------------------------- >This SF.Net email is sponsored by: INetU >Attention Web Developers & Consultants: Become An INetU Hosting Partner. >Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! >INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php >_______________________________________________ >Dev-cpp-users mailing list >Dev...@li... >TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm >https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > > > |