News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

Specifying an alternate library - boost in this case in Ubuntu

Started by hnorpois, September 02, 2016, 09:47:58 PM

Previous topic - Next topic

hnorpois

Hello,

From the terminal it works:
g++ -I /usr/include/ main.cpp -o example2 /usr/lib/x86_64-linux-gnu/libboost_regex.a

I know the way is somewhere in the direction of Project -> Build Options ... but then I am not shure ... The problem ist the library direction (/usr/lib...) ... I tried -> Search Directories and Pre/Post build Steps. I guess Linker Settings is /usr/include. But if works without any additional linker settings if no libboost_yx is needed.
Could anybody give me a hint?
Thanks
hermann

oBFusCATed

Hm, this looks like a default path for searching libraries.
I think that the only thing you should do is add boost_regex to the list of libraries and it should work.
Also

g++ -I /usr/include/ main.cpp -o example2 -lboost_regex

Should just work.
(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!]