Re: [Dev-C++] FREE download: a HOW-TO use wxWindows with Dev-C++
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
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 > > > > |