News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

cannot find -lwxmsw28u

Started by bakenzilo, June 23, 2010, 04:39:55 PM

Previous topic - Next topic

bakenzilo

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.

location of wxWidgets folder on my computer is C:\wxX11-2.8.11

Thanks!

oBFusCATed

(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

bakenzilo

#2
Hi,

I've read http://wiki.codeblocks.org/index.php?title=WxWindowsQuickRef and 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 :((

stahta01

#3
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
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

Jenna

Do you have a debug-build of C::B ?
You try to link against it.

stahta01

Quote from: jens on June 23, 2010, 05:21:31 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.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

bakenzilo

Quote from: 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

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"

MortenMacFly

Quote from: bakenzilo on June 23, 2010, 06:29:45 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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

bakenzilo

Quote from: MortenMacFly on June 23, 2010, 06:32:37 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

Jenna

Once again:
Quote from: jens on June 23, 2010, 05:21:31 PM
Do you have a debug-build of C::B ?
You try to link against it.

bakenzilo

ok, this helped and it's finally working, thanks a lot! :)

bakenzilo

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?

Jenna

Quote from: 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?
Make sure the dll is either in your system-path or in the same directory as the executable.

bakenzilo

#13
thanks!!!

...again... :)))