User forums > Using Code::Blocks
[SOLVED] CodeBlocks link libboost
str0g:
Over linux:
You have to give link which looks like -lboost_[libname] and libs linker option which where used to create boost lib.
example for threads:
-lboost_thread //to make boost partial work
-lpthread //to make it work with out error and warnings
Instaling boost over ubuntu:
Download from repository any complete boost package then overwrite it with latest stable release. (sudo cp -rf [dir_with_latest] /usr/include/boost/)
Over Windows:
yor project->bulid_options->search directories-> compiler->add(path to boost[numer_version_folder])
//still not working don't know linker options.
MortenMacFly:
--- Quote from: str0g on January 23, 2010, 10:04:30 am ---How do I link libboost in codeblocks?
--- End quote ---
Add the required compiler/linker options for that version of boost. Project -> Right click -> Build options -> tab "compiler settings" and tab "linker settings". Notice that you really should setup a project before (which you most likely have already). See the C::B documentation (http://www.codeblocks.org/docs/main_codeblocks_en.html) for details.
str0g:
--- Quote from: MortenMacFly on January 23, 2010, 10:20:43 am ---Add the required compiler/linker options for that version of boost.
--- End quote ---
If I knew what should I type I wouldn't bother you :P
Jenna:
--- Quote from: str0g on January 23, 2010, 10:31:08 am ---
--- Quote from: MortenMacFly on January 23, 2010, 10:20:43 am ---Add the required compiler/linker options for that version of boost.
--- End quote ---
If I knew what should I type I wouldn't bother you :P
--- End quote ---
Then you are in the wrong place here !!
We do not provide support for each and every toolkit in the world !
This forum is dedicated to C::B, using C::B, problems with C::B, developping C::B, but not to general programming questions or questions about a special toolkit, that's far beyond our possibilities.
If you know what to add, but don't know how to do this, feel free to ask again (after searching the forum and the web and reading the manual of course).
str0g:
I was hoping that you are using boost or you were using in the past.
On wiki.codeblocks there is empty site about boost and codeblocks so forgive me that I had hope :P
Navigation
[0] Message Index
[#] Next page
Go to full version