Ruggero Turra
Ruggero Turra

Reputation: 17670

find boost library path

I'm writing a program using boost program_options, I followed this instruction: http://www.boost.org/doc/libs/1_47_0/more/getting_started/unix-variants.html#build-a-simple-program-using-boost and everythings is fine. The point now is that I want to distribute the source, so my problem is how to find where the boost libraries are installed on other linux machines (supposing they are). For example on my pc they are in /usr/lib64 but on the other machine they're installed in non-standard places.

I don't want to use tool like autotools, I'm using a simple plain Makefile.

Is there some tool provided with the boost installation to find where the libraries are? Is there some enviroment variables?

Upvotes: 2

Views: 2309

Answers (1)

Tom Kerr
Tom Kerr

Reputation: 10720

You either need to use a tool like autotools (I thoroughly recommend CMake, it's awesome), or have it available in a place that your compiler can find it. You can't configure everyone's system for them though, so usually the latter is insufficient.

Upvotes: 3

Related Questions