开发者

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

开发者 https://www.devze.com 2023-04-12 03:27 出处:网络
What commands are there to tell g++ to use all .so libs of a library like boost or opencv in a system?

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

精彩评论

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