Sergey
Sergey

Reputation: 21241

provide all (boost,.. whatever) libs to gcc in Freebsd and Ubuntu

What commands are there to tell g++ to use all .so libs of a library like boost or opencv in a system?

I mean not to link it one by one manually like g++ /usr/local/lib/libboost_filesystem.so ....
Forgot such command in ubuntu and don't know what is it in FreeBSD.

Upvotes: 2

Views: 129

Answers (2)

cnicutar
cnicutar

Reputation: 182734

Could it be you are looking for pkg-config ? If so, it's in ports in devel.
Usage: pkg-config --libs --cflags libraryName

Upvotes: 2

Shahbaz
Shahbaz

Reputation: 47583

You need to use -L and -l options with g++

Upvotes: 0

Related Questions