Code::Blocks Forums

User forums => Help => Topic started by: bakenzilo on June 23, 2010, 04:39:55 pm

Title: cannot find -lwxmsw28u
Post 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!
Title: Re: cannot find -lwxmsw28u
Post by: oBFusCATed on June 23, 2010, 04:47:57 pm
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
Title: Re: cannot find -lwxmsw28u
Post by: bakenzilo on June 23, 2010, 05:11:59 pm
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:

Quote
-------------- 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 :((
Title: Re: cannot find -lwxmsw28u
Post by: stahta01 on June 23, 2010, 05:17:00 pm
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.

.
Quote
# wxAll  - all wxWidgets ports (other formats: bz2, zip)
# wxMSW - installer for Windows, with manual (other formats: zip)

Tim S
Title: Re: cannot find -lwxmsw28u
Post by: Jenna on June 23, 2010, 05:21:31 pm
Do you have a debug-build of C::B ?
You try to link against it.
Title: Re: cannot find -lwxmsw28u
Post by: stahta01 on June 23, 2010, 05:26:51 pm
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.
Title: Re: cannot find -lwxmsw28u
Post by: bakenzilo on June 23, 2010, 06:29:45 pm
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.

.
Quote
# 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"
Title: Re: cannot find -lwxmsw28u
Post by: MortenMacFly on June 23, 2010, 06:32:37 pm
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.
Title: Re: cannot find -lwxmsw28u
Post by: bakenzilo on June 23, 2010, 06:38:16 pm
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)
Title: Re: cannot find -lwxmsw28u
Post by: Jenna on June 23, 2010, 06:47:14 pm
Once again:
Do you have a debug-build of C::B ?
You try to link against it.
Title: Re: cannot find -lwxmsw28u
Post by: bakenzilo on June 23, 2010, 06:54:44 pm
ok, this helped and it's finally working, thanks a lot! :)
Title: Re: cannot find -lwxmsw28u
Post by: bakenzilo on June 24, 2010, 07:37:08 pm
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?
Title: Re: cannot find -lwxmsw28u
Post by: Jenna on June 24, 2010, 07:43:11 pm
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.
Title: Re: cannot find -lwxmsw28u
Post by: bakenzilo on June 24, 2010, 07:56:13 pm
thanks!!!

...again... :)))