|
From: Brian A. <bri...@gm...> - 2003-06-13 19:43:28
|
I don't think I have a dll build, I didn't want it, if I do, but, I tried it just in case...I got this :: C:/Dev-Cpp/lib/libwxmsw250d.a(app.o)(.text+0x2874): In function `WinMain': c:/wx/mswd/../src/msw/main.cpp:85: multiple definition of `WinMain@16' main.o(.text+0xb4):main.cpp: first defined here main.o(.text+0x24):main.cpp: undefined reference to `_imp___ZN9wxAppBase17CheckBuildOptionsERK14wxBuildOptions' main.o(.text+0xac):main.cpp: undefined reference to `_imp__wxTheApp' So I think that is not my problem... I tried your other suggestions, and they yeilded the same results I was getting previously. I'll keep playing with the compiler options and linker options, and see where I get. Any other suggestions (and thank you very much, by the way...) Brian OROSZI Balázs wrote: > Brian Ackermann wrote: > >> Ok, now I've made an attempt to 'plug-in' my new build to my Dev-Cpp >> install...and I get this... >> ========================================= >> Executing make clean >> rm -f minimal.o minimal.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" -fno-rtti >> -fno-exceptions -fno-pcc-struct-return -fstrict-aliasing -Wall >> -fvtable-thunks -D__WXMSW__ -D__GNUWIN32__ -DWINVER=0x400 -D__WIN95__ >> -DSTRICT -D__WXDEBUG__ -fexpensive-optimizations -O1 >> >> cc1plus.exe: warning: -fvtable-thunks is no longer supported > > > Remove "-fvtable-thunks" from compiler options. > Also, where did you get the -D flags? Did you dig it out from the > makefiles of wxWindows? I did it once, and these are the flags, that I > could obtain. I use them and it works: > -D_X86_ -DWIN32 -D_WIN32 -DWINVER=0x0400 -D__WIN95__ -D__GNUWIN32__ > -D__WIN32__ -DSTRICT -DHAVE_W32API_H -D__WXMSW__ -D__WINDOWS__ > > Of course, use -D__WXDEBUG__ in your case, as you use the debug build. > Note, that I also experimented with -D flags, to don't have too much > of them, but still compile: my result was the same as yours, a crash > (I thought: if it compiles, it works). So I suggest you to specify all > the flags above. > >> g++.exe minimal.o -o "minimal.exe" -L"C:/Dev-Cpp/lib" -mwindows >> -lwxmsw250d -lcomdlg32 -luser32 -lgdi32 -lole32 -lwsock32 -lcomctl32 >> -lctl3d32 -lgcc -lstdc++ -lshell32 -loleaut32 -ladvapi32 -luuid >> -Lc:/wx/lib > > > Hmmm... -lwxmsw250d > Is it a DLL build? Because in that case, you also need to add one more > flag for the compiler: > -DWXUSINGDLL > > Actually, try this first, and if the result is still a crash, then add > all flags above. > > I hope I could help. Tell me, if you succeed. > -- > Greetings, > Balázs > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: eBay > Great deals on office technology -- on eBay now! Click here: > http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5 > _______________________________________________ > 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 > > |