Code::Blocks Forums

User forums => Help => Topic started by: TomerA on May 02, 2010, 10:45:43 pm

Title: Adding library to a project
Post by: TomerA on May 02, 2010, 10:45:43 pm
I'm pretty (read "very") new to "large" size projects, and I'm required to use a supplied library file.
I've tried adding it by putting it (the library file) in the project directory and then adding it in the project build options in the "Linker" tab...
How ever when ever I try to compile it I get "ld.exe||cannot find -lcontainers|".
What am I missing?
Title: Re: Adding library to a project
Post by: oBFusCATed on May 02, 2010, 10:47:58 pm
What am I missing?
Read this: http://wiki.codeblocks.org/index.php?title=FAQ#Q:_How_do_I_troubleshoot_an_compiler_problem.3F
Then read your compiler/linker manual
Title: Re: Adding library to a project
Post by: Folco on May 03, 2010, 12:07:35 am
You could be helped by some examples of sources code using this library, especially looking at the Makefile used for the compilation (I do that to retrieve the switches to give to the compiler).