Boost libraries

I have C::B with Ubuntu and I am trying to install the boost libraries. I have downloaded them. Built them in my /usr/include folder and now I am trying to link the libraries.

I gave search directories for C::B to look but not sure what to do about the linker settings.

I can not find any boost files that end with .lib to know which ones are the actual libraries.

What do i put under the linker settings tab?

Thanks
Shared libraries have a ".so" extension (for "shared object") and static libraries have a ".a" extension (for "archive"). Do those exist?

Have you considered installing the Boost libraries that come with Ubuntu rather than building the Boost libraries yourself?

If you do choose to build Boost, it is best not to build them in /usr/include. Instead, build them elsewhere (like maybe your home directory) and have Boost install them to the proper location (/usr/local/... most likely). In that case the libraries would be in /usr/local/lib or /usr/local/lib64.

Did you check that Ubuntu doesn't provide boost libraries through its package management system?

As far as the linker settings tab goes, I am not familiar with C::B. However you will need a -L/path/to/the/libs flag on your compiler and a -llibname for each library you use.

If the libraries are installed in /usr/lib then the -L flag is not required.
Last edited on
i am new to linux and C::B and boost.
All this is working against me.
Been trying to learn so many new things at once and it sucks.

What do you guys mean the boost libraries that come with Ubuntu?
Please explain how to do this.

After that installation will I still have to link it to C::B?
Ubuntu comes with a package management system (as do all Linux distros) that allows you to install or remove software from the internet.

You should have a package manager program maybe Synaptic? (I don't use Ubuntu). If you run that you can search for the boost packages and install them.

I would remove the ones you installed yourself first if you choose to do that.

These might help:
http://www.wikihow.com/Install-Software-in-Ubuntu

http://help.ubuntu.com/community/SynapticHowto

In order to program using boost you will need to install the development packages, not just the libraries. They may be called something like boost-devel or boost-dev or similar.
Last edited on
I have been doing some searching and using synaptic. I have now installed the development packages and the libraries.
But were they supposed to automatically link with C::B? Or do I have to manually set those up?
I still dont see any .lib or .so files. Only .hpp
Ok. It seems I got it to work just compiling through the terminal and not linking in C::B.

Ill keep looking. Let me know if you have any other advice. Thanks alot
Topic archived. No new replies allowed.