User forums > Help
Error!! please help
cshong:
I'm using Microsoft Windows XP Home Edition with SP2. I had installed wxWidgets version 2.8.4. In Project - Build Options - wxWidgets application - Custom Variables, I had set WX_DIR = C:\wxWidgets-2.8.4, this is the path I installed wxWidgets to.
When I try to build my first application, a build error "C:\Program Files\CodeBlocks\bin\..\lib\gcc\mingw32\3.4.4\..\..\..\..\mingw32\bin\ld.exe: cannot find -lwxmsw26" was occured. Why?
How to solve this problem (only with wxWidgets version 2.8.4, without having to install previous version)?
Ceniza:
Edit your project settings and change the name of the library to link against from wxmsw26 to wxmsw28 and you should be done.
cshong:
The solution posted by Ceniza does not work. why?
I compile wxWidgets using Visual C++ 2005.
The problem occured in code::blocks
Biplab:
--- Quote from: cshong on August 25, 2007, 08:37:21 am ---The solution posted by Ceniza does not work. why?
I compile wxWidgets using Visual C++ 2005.
The problem occured in code::blocks
--- End quote ---
Then you should use appropriate compiler. Create a new project using wxWidgets wizard and select Microsoft Visual C++ 2005 compiler.
nicola:
I have the same problem.
Building wxWidgets-2.8.4 with MinGW 5.1.3 I got the same "cannot find -lwxmsw26"
in my
C:\projects\wxWidgets-2.8.4\lib\gcc_dll\
there are:
libwxexpat.a
libwxjpeg.a
libwxmsw28u.a
libwxpng.a
libwxregexu.a
libwxti.a
libwxzlib.a
wxmsw28u_gcc_custom.dll ( about 10 mb)
seems like i got 1 big library
but how to make the template project compile and work? want to see what is wx.
CB is
Name: Code::Blocks
Version: 1.0rc2
can anybody advise smth.? or tell what was his stuff in case there was no problems?
Navigation
[0] Message Index
[#] Next page
Go to full version