To stahta01:
thank you very much!!!
I had compiler wxWidgets successfully.
and, I had set Global variable named "wx", the "base " is set to
:\bin\wxWidgets\wxWidgets-2.8.7
"include" and "lib" fields is blank;
"libwxmsw28u.a" in "D:\bin\wxWidgets\wxWidgets-2.8.7\lib\gcc_dll\".
using CB wizard to create project,if I check "use wxWidgets DLL",it can compile sucessful,also can run .
But,I do not want to use as DLL,want to compile with static lib, so not chek "use wxWidgets DLL";thus,problem happended.
and, in my project build options,I can see , it has following lib(automaticly added by CB):
libwxmsw28u.a
libwxpng.a
libwxjpeg.a
libwxtiff.a
libwxzlib.a
So , I cofused.
following is Build log:
-------------- Build: Release in Demo2 ---------------
mingw32-g++.exe -pipe -mthreads -D__GNUWIN32__ -D__WXMSW__ -DwxUSE_UNICODE -Wall -O2 -ID:\bin\wxWidgets\wxWidgets-2.8.7\include -ID:\bin\wxWidgets\wxWidgets-2.8.7\contrib\include -ID:\bin\wxWidgets\wxWidgets-2.8.7\lib\gcc_lib\mswu -ID:\bin\wxWidgets\wxWidgets-2.8.7\include -ID:\bin\wxWidgets\wxWidgets-2.8.7\lib\gcc_dll\mswu -ID:\bin\wxWidgets\wxWidgets-2.8.7\lib\gcc_dll\mswud -c E:\mytest\wxWiegets\CodeBlocks\Demo2\Demo2Main.cpp -o obj\Release\Demo2Main.o
windres.exe -i E:\mytest\WXWIEG~1\CODEBL~1\Demo2\resource.rc -J rc -o obj\Release\resource.res -O coff -ID:\bin\wxWidgets\wxWidgets-2.8.7\include -ID:\bin\wxWidgets\wxWidgets-2.8.7\lib\gcc_lib\mswu
mingw32-g++.exe -pipe -mthreads -D__GNUWIN32__ -D__WXMSW__ -DwxUSE_UNICODE -Wall -O2 -ID:\bin\wxWidgets\wxWidgets-2.8.7\include -ID:\bin\wxWidgets\wxWidgets-2.8.7\contrib\include -ID:\bin\wxWidgets\wxWidgets-2.8.7\lib\gcc_lib\mswu -ID:\bin\wxWidgets\wxWidgets-2.8.7\include -ID:\bin\wxWidgets\wxWidgets-2.8.7\lib\gcc_dll\mswu -ID:\bin\wxWidgets\wxWidgets-2.8.7\lib\gcc_dll\mswud -c E:\mytest\wxWiegets\CodeBlocks\Demo2\Demo2App.cpp -o obj\Release\Demo2App.o
mingw32-g++.exe -LD:\bin\wxWidgets\wxWidgets-2.8.7\lib\gcc_lib -LD:\bin\wxWidgets\wxWidgets-2.8.7\lib -o bin\Release\Demo2.exe obj\Release\Demo2Main.o obj\Release\Demo2App.o obj\Release\resource.res -s -lwxmsw28u -lwxpng -lwxjpeg -lwxtiff -lwxzlib -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -luuid -lcomctl32 -lwsock32 -lodbc32 -mwindows
D:\bin\wxWidgets\CodeBlocks\bin\..\lib\gcc\mingw32\3.4.4\..\..\..\..\mingw32\bin\ld.exe: cannot find -lwxmsw28u
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 20 seconds)
1 errors, 0 warnings