Author Topic: cannot find -lwxmsw28u  (Read 7434 times)

Offline bakenzilo

  • Single posting newcomer
  • *
  • Posts: 7
cannot find -lwxmsw28u
« 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.

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

Thanks!

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13165
    • Travis build status
Re: cannot find -lwxmsw28u
« Reply #1 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
(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!]

Offline bakenzilo

  • Single posting newcomer
  • *
  • Posts: 7
Re: cannot find -lwxmsw28u
« Reply #2 on: June 23, 2010, 05:11:59 pm »
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 :((
« Last Edit: June 23, 2010, 05:16:08 pm by bakenzilo »

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7070
    • My Best Post
Re: cannot find -lwxmsw28u
« Reply #3 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
« Last Edit: June 23, 2010, 05:21:03 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline jens

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: cannot find -lwxmsw28u
« Reply #4 on: June 23, 2010, 05:21:31 pm »
Do you have a debug-build of C::B ?
You try to link against it.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7070
    • My Best Post
Re: cannot find -lwxmsw28u
« Reply #5 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.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline bakenzilo

  • Single posting newcomer
  • *
  • Posts: 7
Re: cannot find -lwxmsw28u
« Reply #6 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"

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9613
Re: cannot find -lwxmsw28u
« Reply #7 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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: http://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: http://wiki.codeblocks.org/index.php?title=FAQ

Offline bakenzilo

  • Single posting newcomer
  • *
  • Posts: 7
Re: cannot find -lwxmsw28u
« Reply #8 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

Offline jens

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: cannot find -lwxmsw28u
« Reply #9 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.

Offline bakenzilo

  • Single posting newcomer
  • *
  • Posts: 7
Re: cannot find -lwxmsw28u
« Reply #10 on: June 23, 2010, 06:54:44 pm »
ok, this helped and it's finally working, thanks a lot! :)

Offline bakenzilo

  • Single posting newcomer
  • *
  • Posts: 7
Re: cannot find -lwxmsw28u
« Reply #11 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?

Offline jens

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: cannot find -lwxmsw28u
« Reply #12 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.

Offline bakenzilo

  • Single posting newcomer
  • *
  • Posts: 7
Re: cannot find -lwxmsw28u
« Reply #13 on: June 24, 2010, 07:56:13 pm »
thanks!!!

...again... :)))
« Last Edit: June 24, 2010, 07:58:50 pm by bakenzilo »