Now I have add 'E:\wxWidgets-2.6.2\lib\gcc_dll to project's linker directories,I have create new project again, directory of project is 'E:\TEST\wxtest',and set the global variable WX to 'E:\TEST\wxtest' ,but after Compile, it still report error messages:
-------------- Build: default in wxtest ---------------
mingw32-g++.exe -pipe -mthreads -Winvalid-pch -include "wx_pch.h" -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DwxUSE_UNICODE -DUSE_PCH -IE:\TEST\wxtest\include -IE:\TEST\wxtest\lib\gcc_dll\mswu -IE:\TEST\wxtest\contrib\include -I"C:\Program Files\CodeBlocks\include" -IE:\wxWidgets-2.6.2\include -c wx_pch.h -o wx_pch.h.gch\default_wx_pch.h.gch
mingw32-g++.exe -pipe -mthreads -Winvalid-pch -include "wx_pch.h" -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DwxUSE_UNICODE -DUSE_PCH -IE:\TEST\wxtest\include -IE:\TEST\wxtest\lib\gcc_dll\mswu -IE:\TEST\wxtest\contrib\include -I"C:\Program Files\CodeBlocks\include" -IE:\wxWidgets-2.6.2\include -c main.cpp -o .objs\main.o
mingw32-g++.exe -LE:\TEST\wxtest\lib -LE:\TEST\wxtest\lib\gcc_dll -L"C:\Program Files\CodeBlocks\lib" -LE:\wxWidgets-2.6.2\lib\gcc_dll -o wxwidgets_u.exe .objs\main.o -lwxmsw26u -mwindows
C:\Program Files\CodeBlocks\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\mingw32\bin\ld.exe: cannot find -lwxmsw26u
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 31 seconds)
1 errors, 0 warnings