|
From: <or...@vp...> - 2003-06-13 18:50:02
|
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 |