lamont a écrit:
>I have wxwindows version 2.4.0 and dev cpp 4.9.7.4. I'm able to get
>wxwindows compiled into a lib from the command line, but when I try to
>compile an example program it fails with the following error:
>
>unrecognised emulation mode: windows
>Supported emulations: i386pe
>
>I have check every option that I know of in dev cpp and the -mwindows
>directive is not listed. Here are my compiler and linker options:
>
>compiler: -fno-rtti -fno-exceptions -fno-pcc-struct-return -fstrict-aliasing
> -Wall -fvtable-thunks -D__WXMSW__ -D__GNUWIN32__ -DWINVER=0x400 -D__WIN95__
> -DSTRICT -D__WXDEBUG__
>
I'm using these options :
-D_X86_=1 -DWIN32 -DWINVER=0x0400 -D__WIN95__ -D__GNUWIN32__ -D__WIN32__
-mthreads -DSTRICT -D__WXMSW__ -D__WINDOWS__ -Wall
-fno-pcc-struct-return -O2 -fno-rtti -fno-exceptions
>
>linker: -lwxmswd -lcomdlg32 -luser32 -lgdi32 -lole32 -lwsock32 -lcomctl32 -l
>ctl3d32 -lgcc -lstdc++ -lshell32 -loleaut32 -ladvapi32 -luuid -Le:\work_area
>\programming\wxWindows\lib
>
>
-lwxmswu -lstdc++ -lgcc -lodbc32 -lwsock32 -lwinspool -lwinmm -lshell32
-lcomctl32 -lctl3d32 -lodbc32 -ladvapi32 -lodbc32 -lwsock32 -lopengl32
-lglu32 -lole32 -loleaut32 -luuid
>The project type is set to 'Win32 GUI' and here is the command line that
>devcpp sends to the compiler:
>
>g++.exe -D__DEBUG__ 1stproject.o -o
>"Project1.exe" -lwinmm -L"D:/program_files/Dev-Cpp/lib" -L"E:/work_area/prog
>ramming/c++/utilLib" -L"" -mwindows -lwxmswd -lcomdlg32 -luser32 -lgdi32 -lo
>le32 -lwsock32 -lcomctl32 -lctl3d32 -lgcc -lstdc++ -lshell32 -loleaut32 -lad
>vapi32 -luuid -Le:/work_area/programming/wxWindows/lib -I"D:/program_files/
>Dev-Cpp/include" -I"e:/work_area/programming/wxwindows/include" -I"e:/work
>_area/programming/wxwindows/lib/mswd" -fexpensive-optimizations -g3
>
>
>Anyone know how I can get rid of the -mwindows option? Or is there some
>other problem?? thanks.
>
>
>
>
>-------------------------------------------------------
>This SF.net email is sponsored by: SlickEdit Inc. Develop an edge.
>The most comprehensive and flexible code editor you can use.
>Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial.
>www.slickedit.com/sourceforge
>_______________________________________________
>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
>
>
>
|