Can not build wxWidgets project
Posted: Mon Aug 18, 2008 3:54 pm
I installed Mingw32 / wxWidgets / codelite
To build wxWidgets-2.8.8 I use:
mingw32-make -f makefile.gcc BUILD=release UNICODE=1 USE_XRC=1
or
mingw32-make -f makefile.gcc BUILD=release UNICODE=1
When I build console wxWidgets sample(Simple main with wxWidgets enabled) , it's OK
When I build GUI wxWidgets sample(GUI application with main Frame) , not work , the out put is:
For more , my Code:Blocks work well.
Sorry for my poor Enlish.
To build wxWidgets-2.8.8 I use:
mingw32-make -f makefile.gcc BUILD=release UNICODE=1 USE_XRC=1
or
mingw32-make -f makefile.gcc BUILD=release UNICODE=1
When I build console wxWidgets sample(Simple main with wxWidgets enabled) , it's OK
When I build GUI wxWidgets sample(GUI application with main Frame) , not work , the out put is:
Code: Select all
Building: "C:/MinGW/bin/mingw32-make.EXE" -j 2 -f "fff_wsp.mk" type=Debug
----------Building project:[ ddd - DebugUnicode ]----------
g++ -o ./DebugUnicode/ddd ./DebugUnicode/ddd_app.o ./DebugUnicode/ddd_frame.o -O2 -mthreads -LC:\wxWidgets-2.8.8\lib\gcc_lib -lwxmsw28ud_html -lwxmsw28ud_adv -lwxmsw28ud_core -lwxbase28ud_xml -lwxbase28ud_net -lwxbase28ud -lwxtiffd -lwxjpegd -lwxpngd -lwxzlibd -lwxregexud -lwxexpatd -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwxregexud -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -mwindows
./DebugUnicode/ddd_app.o: In function `ZN6DddApp6OnInitEv':
E:/project/codelite/fff/ddd_app.cpp:21: undefined reference to `wxXmlResource::Get()'
E:/project/codelite/fff/ddd_app.cpp:21: undefined reference to `wxXmlResource::InitAllHandlers()'
collect2: ld returned 1 exit status
mingw32-make.EXE[1]: *** [DebugUnicode/ddd] Error 1
mingw32-make.EXE: *** [All] Error 2
----------Build Ended----------
Sorry for my poor Enlish.