oompahloompah
oompahloompah

Reputation: 9343

Boost installation and library paths

I have been using Boost (the header only library part) for sometime now. I recently started on a project that required the compiled libraries (filesystem etc).

I followed the instructions given in the documentation, and was under the impression that the libraries to installed (directly) in the usr/local folder. After a lot of trial and error, I found that the correct (*.a) files to use were in:

/usr/local/boost_1_45_0/stage/lib/

Is this the correct folder to use for linking the boost built shlibs (shared libraries)?

Upvotes: 3

Views: 677

Answers (1)

Arunmu
Arunmu

Reputation: 6901

An example for linking regex static(*.a) lib:

g++ -I /usr/local/boost_1_45_0 -c your_regex_prog

g++ -static -o static_regex your_regex_prog.o -lboost_regex

Upvotes: 1

Related Questions