开发者

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.


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


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜