Code::Blocks Forums
User forums => Help => Topic started by: bakenzilo on June 23, 2010, 04:39:55 pm
-
Hi,
I have CB 10.05 installed on my computer (Windows 7) but when I try to build and run a wxwidgets project I get an error "Cannot find -lwxmsw24". I've found somewhere that I need to configure something in my build options but I'm not quite sure what exactly (I would really appreciate detailed answer)...
I followed all the steps on this page http://wiki.wxwidgets.org/CodeBlocks_Setup_Guide (http://wiki.wxwidgets.org/CodeBlocks_Setup_Guide).
location of wxWidgets folder on my computer is C:\wxX11-2.8.11
Thanks!
-
Read this: http://wiki.codeblocks.org/index.php?title=FAQ#Q:_How_do_I_troubleshoot_an_compiler_problem.3F
Also search the wiki for pages that explain the setup process for wx on windows
-
Hi,
I've read http://wiki.codeblocks.org/index.php?title=WxWindowsQuickRef (http://wiki.codeblocks.org/index.php?title=WxWindowsQuickRef) and http://wiki.wxwidgets.org/CodeBlocks_Setup_Guide (http://wiki.wxwidgets.org/CodeBlocks_Setup_Guide), it's not not helping, mate...I'm following all of these instructions but the problem is still there...
this is build log of my project:
-------------- Build: Debug in fsfs ---------------
mingw32-g++.exe -Wall -pipe -mthreads -Wno-attributes -Winvalid-pch -include wx_pch.h -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DwxUSE_UNICODE -DWX_PRECOMP -g -D__WXDEBUG__ -IC:\wxX11-2.8.11\include -IC:\wxX11-2.8.11\contrib\include -IC:\wxX11-2.8.11\lib\gcc_dll\msw -IC:\wxX11-2.8.11\lib\gcc_dll\mswud -c C:\Users\Baka\Desktop\fsfs\wx_pch.h -o wx_pch.h.gch\Debug_wx_pch_h_gch
windres.exe -i C:\Users\Baka\Desktop\fsfs\resource.rc -J rc -o obj\Debug\resource.res -O coff -IC:\wxX11-2.8.11\include -IC:\wxX11-2.8.11\lib\gcc_dll\mswud
mingw32-g++.exe -Wall -pipe -mthreads -Wno-attributes -Winvalid-pch -include wx_pch.h -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DwxUSE_UNICODE -DWX_PRECOMP -g -D__WXDEBUG__ -IC:\wxX11-2.8.11\include -IC:\wxX11-2.8.11\contrib\include -IC:\wxX11-2.8.11\lib\gcc_dll\msw -IC:\wxX11-2.8.11\lib\gcc_dll\mswud -c C:\Users\Baka\Desktop\fsfs\fsfsMain.cpp -o obj\Debug\fsfsMain.o
mingw32-g++.exe -Wall -pipe -mthreads -Wno-attributes -Winvalid-pch -include wx_pch.h -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DwxUSE_UNICODE -DWX_PRECOMP -g -D__WXDEBUG__ -IC:\wxX11-2.8.11\include -IC:\wxX11-2.8.11\contrib\include -IC:\wxX11-2.8.11\lib\gcc_dll\msw -IC:\wxX11-2.8.11\lib\gcc_dll\mswud -c C:\Users\Baka\Desktop\fsfs\fsfsApp.cpp -o obj\Debug\fsfsApp.o
mingw32-g++.exe -LC:\wxX11-2.8.11\lib\gcc_dll -o bin\Debug\fsfs.exe obj\Debug\fsfsMain.o obj\Debug\fsfsApp.o obj\Debug\resource.res -mthreads -lwxmsw28ud -mwindows
c:/program files (x86)/codeblocks/mingw/bin/../lib/gcc/mingw32/4.4.1/../../../../mingw32/bin/ld.exe: cannot find -lwxmsw28ud
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 9 seconds)
1 errors, 0 warnings
I've been trying to fix this for a few days now, it's getting frustrating :((
-
Please use the version of wxWidgets for windows; your folder says wxX11-2.8.11 this implies you have the Linux/Unix X Windows version of wxWidgets.
I use either wxALL or wxMSW for windows builds.
.# wxAll - all wxWidgets ports (other formats: bz2, zip)
# wxMSW - installer for Windows, with manual (other formats: zip)
Tim S
-
Do you have a debug-build of C::B ?
You try to link against it.
-
Do you have a debug-build of C::B ?
You try to link against it.
I think he meant to say "debug-build of wxWidgets"?
Tim S.
-
Please use the version of wxWidgets for windows; your folder says wxX11-2.8.11 this implies you have the Linux/Unix X Windows version of wxWidgets.
I use either wxALL or wxMSW for windows builds.
.# wxAll - all wxWidgets ports (other formats: bz2, zip)
# wxMSW - installer for Windows, with manual (other formats: zip)
Tim S
thanks for that, but...I downloaded wxMSW but still doesn't work :/
I also tried to reinstall Code Blocks, doesn't help...getting same error "cannot find -lwxmsw28u"
-
thanks for that, but...I downloaded wxMSW but still doesn't work :/
Please, read the instruction on he wxWidgets homepage. You NEED to compile wxWidgets yourself if you are using this package. Alternatively use a pre-compiled package, such as wxPack - but then the library files might be named differently.
-
Please, read the instruction on he wxWidgets homepage. You NEED to compile wxWidgets yourself if you are using this package. Alternatively use a pre-compiled package, such as wxPack - but then the library files might be named differently.
I compiled it...once more: I followed EVERY single step from this page http://wiki.codeblocks.org/index.php?title=WxWindowsQuickRef (http://wiki.codeblocks.org/index.php?title=WxWindowsQuickRef)
-
Once again:
Do you have a debug-build of C::B ?
You try to link against it.
-
ok, this helped and it's finally working, thanks a lot! :)
-
me again :(
I get this error "The program can't start because wxmsw28u_gcc_custom.dll is missing from your computer..." when I try to run application I created (from project folder). It works fine when I run it in Code Blocks...
any ideas?
-
me again :(
I get this error "The program can't start because wxmsw28u_gcc_custom.dll is missing from your computer..." when I try to run application I created (from project folder). It works fine when I run it in Code Blocks...
any ideas?
Make sure the dll is either in your system-path or in the same directory as the executable.
-
thanks!!!
...again... :)))