Author Topic: I am sure I have asked this before ....  (Read 5185 times)

Offline blinkinhek

  • Multiple posting newcomer
  • *
  • Posts: 17
I am sure I have asked this before ....
« on: October 14, 2008, 01:07:47 pm »
I have installed CB on a new machine, installed wxWidgets 2.8, and now when building a basic wxWidgets app, CB linker gives "cannot find -lwxmsw28d"

I know I have had this before when first running CB ... but being stupid I cannot remember why (it may come to me some time in my sleep tonight)

What am I forgetting?

My list of libs from the wxWidgets build is (and these are sited in <wx>\lib\gcc_lib:
libwxregexd.a           libwxzlibd.a                  libwxpngd.a
libwxjpegd.a             libwxtiffd.a                  libwxexpatd.a
libwxbase28d.a         libwxbase28d_net.a       libwxmsw28d_core.a
libwxmsw28d_adv.a   libwxmsw28d_media.a    libwxmsw28d_html.a
libwxbase28d_xml.a       libwxmsw28d_xrc.a    libwxmsw28d_aui.a
libwxmsw28d_richtext.a libwxregex.a              libwxzlib.a             
libwxpng.a               libwxjpeg.a                   libwxtiff.a             
libwxexpat.a             libwxbase28.a               libwxbase28_net.a       
libwxmsw28_core.a        libwxmsw28_adv.a     libwxmsw28_media.a       
libwxmsw28_html.a        libwxbase28_xml.a     libwxmsw28_xrc.a         
libwxmsw28_aui.a         libwxmsw28_richtext.a

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: I am sure I have asked this before ....
« Reply #1 on: October 14, 2008, 01:22:09 pm »
What am I forgetting?
Provide the linker with the path to the libraries within you project's build options under "Search directories" -> "Linker".

BTW: If you search the forums/WiKi you will realise that this has been answered ~1 Mio times.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline blinkinhek

  • Multiple posting newcomer
  • *
  • Posts: 17
Re: I am sure I have asked this before ....
« Reply #2 on: October 14, 2008, 01:41:29 pm »
yes ... I thought so too.
I had got that path setup correctly however.  The lib it is looking for is wxmsw28d which does not exist (although lots of wxmsw28d_??? stuff).

sorry, I know I am being thick here... because I did have it running fine on my other machine.

Offline blinkinhek

  • Multiple posting newcomer
  • *
  • Posts: 17
Re: I am sure I have asked this before ....
« Reply #3 on: October 14, 2008, 02:32:00 pm »
just as a quick addition - this is the command log:

mingw32-g++.exe -LF:\wxWidgets\lib  -o bin\Debug\test.exe obj\Debug\testApp.o obj\Debug\testMain.o  obj\Debug\resource.res   -lwxmsw28d -lwxpngd -lwxjpegd -lwxtiffd -lwxzlibd -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -luuid -lcomctl32 -lwsock32 -lodbc32  -mwindows
F:\CodeBlocks\MinGW\bin\ld.exe: cannot find -lwxmsw28d

Am I missing a lib from the wxWidgets build?

Offline blinkinhek

  • Multiple posting newcomer
  • *
  • Posts: 17
Re: I am sure I have asked this before ....
« Reply #4 on: October 14, 2008, 03:00:49 pm »
please stamp stupid in capital letters on my forehead....
.... for some reason I had set the 'monolithic library' option.

I do sometimes think I should give this up :lol: