User forums > Using Code::Blocks
Is this a linker error.
Biplab:
Hi Abhinav,
I'm well aware of this problem and that is the reason why I'm requesting you to upgrade.
In old wizard, support for wxWidgets was Hard-Coded. Means you can't change it easily without manual editing of Project file outside C::B. And it was hard-coded for wxWidgets-2.6.
In newer wizard, you follow step by step procedures and it will create you a proper project file for wx-2.6, 2.8 or 2.9. It support for wx has been completely revamped.
So my request to you, don't play with Old RC2 or even a nightly build which has been released in January 2007 to start working with wxWidgets. For other features, you can use older releases though I would recommend you for a latest nightly.
Suggestion for old RC2: Open project file in Notepad and Replace -lwxmsw26 with -lwxmsw28 Hopefully this will work in your case. :)
Regards,
Biplab :)
abhinav:
Hi Biplab,
I have upgrede my C::B and installed new nightly and following message appear in build log.
-------------- Build: Debug in test1 ---------------
Skipping file (no compiler program set): wx_pch.h
mingw32-g++.exe -LC:\wxWidgets-2.8.0\lib\gcc_dll -LC:\wxWidgets-2.8.0\lib\gcc_dll -o bin\Debug\test1.exe obj\Debug\main.o obj\Debug\app.o -lwxmsw26u -lcomctl32 -lgdi32 -lole32 -loleaut32 -luuid -lwxmsw26u -lcomctl32 -lgdi32 -lole32 -loleaut32 -luuid
C:\CodeBlocks\bin\..\lib\gcc\mingw32\3.4.4\..\..\..\..\mingw32\bin\ld.exe: cannot find -lwxmsw26u
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 0 seconds)
1 errors, 0 warnings
same problem with new nightly.
Regards,
Abhinav
Biplab:
Did you recreate the project file?? This is very important. Wizard creates a project file and C::B tries to compile that project.
So if you are using old project file with wrong settings in new nightly, the wrong settings will not be corrected automatically by the new wizard. Please recreate the project.
In new wizard select the wxWidgets version 2.8.x at the beginning and then proceed with other options.
Navigation
[0] Message Index
[*] Previous page
Go to full version