Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Plugins development => Topic started by: powercat on August 13, 2013, 05:20:58 pm

Title: ld.exe cannot find -lcodeblocks
Post by: powercat 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?
Title: Re: ld.exe cannot find -lcodeblocks
Post by: powercat 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!
Title: Re: ld.exe cannot find -lcodeblocks
Post by: oBFusCATed on August 13, 2013, 05:47:24 pm
Probably this might help: http://wiki.codeblocks.org/index.php?title=Linking_the_plugin_to_a_Nightly_Build