User forums > Help

cannot find -lwxmsw28u

(1/3) > >>

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

bakenzilo:
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
--- End quote ---

I've been trying to fix this for a few days now, it's getting frustrating :((

stahta01:
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)

--- End quote ---

Tim S

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

Navigation

[0] Message Index

[#] Next page

Go to full version