Author Topic: ld.exe cannot find -lcodeblocks  (Read 20567 times)

Offline powercat

  • Single posting newcomer
  • *
  • Posts: 4
ld.exe cannot find -lcodeblocks
« on: August 13, 2013, 05:20:58 pm »
Sup guys
I'm trying to make a simple plugin to add a toolbar to the GUI.

So I made a new plugin and chose my options, then tried to compile it without modifying any code.

I got a bunch of error messages at first because of missing libraries so I donwloaded the wxMSW-2.8.12 and codeblocks-12.11release8629, added some paths to the libraries of the project.

Now I'm able to build up to

ld.exe cannot find -lcodeblocks

I also had a similar error with wxmsw28u but adding C:\Users\<username>\Documents\CodeBlocks\wxMSW-2.8.12\lib\gcc_dll to the linker search path fixed that one, however I can't find any similar path for "codeblocks"!

Searched on google but https://www.google.ca/search?q=ld.exe+"cannot+find+-lcodeblocks" doesn't return anything relevant.

Any ideas?
« Last Edit: August 13, 2013, 05:23:52 pm by powercat »

Offline powercat

  • Single posting newcomer
  • *
  • Posts: 4
Re: ld.exe cannot find -lcodeblocks
« Reply #1 on: August 13, 2013, 05:26:28 pm »
ERm I don't know what it is about posting a question to a problem and finding the answer right after...

I added this to the linker search path:

C:\Program Files (x86)\CodeBlocks

and it worked to compile without error!

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 11821
    • Travis build status
Re: ld.exe cannot find -lcodeblocks
« Reply #2 on: August 13, 2013, 05:47:24 pm »
(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!]