User forums > Nightly builds
The 06 april 2006 build is out.
alanwong:
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
TheNullinator:
You want WX to be set to "E:\wxWidgets-2.6.2".
Have you checked in "E:\wxWidgets-2.6.2\lib\gcc_dll" for libwxmsw26u.a? It should be there.
alanwong:
I can not find libwxmsw26u.a in "E:\wxWidgets-2.6.2\lib\gcc_dll",why?
all files in "E:\wxWidgets-2.6.2\lib\gcc_dll" as follows:
mswunivu\ -------------> it is a folder.
libwxbase26u.a
libwxbase26u_net.a
libwxbase26u_odbc.a
libwxbase26u_xml.a
libwxexpat.a
libwxjpeg.a
libwxmswuniv26u_adv.a
libwxmswuniv26u_core.a
libwxmswuniv26u_dbgrid.a
libwxmswuniv26u_gl.a
libwxmswuniv26u_html.a
libwxmswuniv26u_media.a
libwxmswuniv26u_xrc.a
libwxpng.a
libwxregexu.a
libwxtiff.a
libwxzlib.a
wxbase26u_gcc_custom.dll
wxbase26u_net_gcc_custom.dll
wxbase26u_odbc_gcc_custom.dll
wxbase26u_xml_gcc_custom.dll
wxmswuniv26u_adv_gcc_custom.dll
wxmswuniv26u_core_gcc_custom.dll
wxmswuniv26u_dbgrid_gcc_custom.dll
wxmswuniv26u_gl_gcc_custom.dll
wxmswuniv26u_html_gcc_custom.dll
wxmswuniv26u_media_gcc_custom.dll
wxmswuniv26u_xrc_gcc_custom.dll
NOW I have set wx to "E:\wxWidgets-2.6.2",and Compile again,but it still report message:
-------------- 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:\wxWidgets-2.6.2\include -IE:\wxWidgets-2.6.2\lib\gcc_dll\mswu -IE:\wxWidgets-2.6.2\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:\wxWidgets-2.6.2\include -IE:\wxWidgets-2.6.2\lib\gcc_dll\mswu -IE:\wxWidgets-2.6.2\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:\wxWidgets-2.6.2\lib -LE:\wxWidgets-2.6.2\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, 41 seconds)
1 errors, 0 warnings
TheNullinator:
Hmm. In my lib\gcc_dll directory I've got:
mswu
libwxregexu.a
libwxzlib.a
libwxpng.a
libwxjpeg.a
libwxtiff.a
libwxexpat.a
wxmsw26u_gcc_custom.dll
libwxmsw26u.a
How did you compile wxWidgets? I did it like this: http://wiki.codeblocks.org/index.php?title=Compiling_wxWidgets_2.6.2_to_develop_Code::Blocks_%28MSW%29
thomas:
--- Quote ---I can not find libwxmsw26u.a in "E:\wxWidgets-2.6.2\lib\gcc_dll",why?
all files in "E:\wxWidgets-2.6.2\lib\gcc_dll" as follows:
--- End quote ---
This is a non-monolithic build ( = many smaller libraries), but the template you used assumes a monolithic build. You'll have to replace the single library with several of the ones you listed (depends on which ones you need, if in doubt, take all), or you have to build wxWidgets with MONOLITHIC=1, in which case you get the library you need (and can build your project as it is).
Sidenote: if you have changed the wx variable according to what the Nullinator said, adding the E:\wxWidgets-2.6.2\lib\gcc_dll path is not necessary - that is what this variable is good for.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version