User forums > Using Code::Blocks
wxSmith' s problem Plz help!
kkez:
imho you're building an unicode C::B with an ANSI wxwidgets build, or viceversa. If you're building it against an ansi wxwidget build, remember to remove the wxUSE_UNICODE #define and to modify the wxsuffix variable (which should be = u) to be = nothing.
80sky:
thank you!
80sky:
-------------- Build: default in wxSmith_project ---------------
Compiling: mainframe.cpp
Precompiling header: wx_pch.h
Compiling: app.cpp
Linking executable: wxSmith_project.exe
D:\Program Files\CodeBlocks\bin\..\lib\gcc\mingw32\3.4.4\..\..\..\..\mingw32\bin\ld.exe: cannot find -lwxmsw26
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 18 seconds)
1 errors, 0 warnings
The old question who can help me! I compile this program whth an UNICODE wxwidgets , that's why?
plz explain clearly, thank you ! I'm new here. so I have too much things to ask. I have too much things not to
understand.
MortenMacFly:
--- Quote from: 80sky on October 15, 2006, 09:04:11 am ---D:\Program Files\CodeBlocks\bin\..\lib\gcc\mingw32\3.4.4\..\..\..\..\mingw32\bin\ld.exe: cannot find -lwxmsw26
--- End quote ---
The linker doesn't have access to the wxWidgets library. This time it looks for the Windows ansi version 2.6 of wxWidgets which you might have compiled (or not). This can have two reasons:
1.) You did not specify the path where the linker should look for this lib (usually the lib's filename would be something like libwxmsw26.a). Setup this in the build options of your project, tab "directories" -> "linker".
2.) You don't have this library. In that case you need to compile wxWidgets for Windows. Have a look at e.g. the wxWidgets homepage how to do so.
In another post there was also a link where to look in the C::B WiKi.
In addtion please enable the full compiler logging (see my sig how to do so). Then post the compiler log again in case it still doesn't work.
With regards, Morten.
Navigation
[0] Message Index
[*] Previous page
Go to full version