更新时间:2023-09-30 16:21:40
两个步骤完成:
/ usr / include目录/升压
块引用>。
2.选择你要在编译过程中使用的链接。它的默认位置是
/ usr / lib目录
块引用>注意:
在我看来,该
-lboost_system
块引用>总是需要。如果你需要-lboost_filesystem或某些其他库,所以要小心。
How to add boots library to Code::Blocks project into Linux Ubuntu. For example I want to add
regex
lib.I've already installed the boots library with:
sudo apt-get install libboost-all-dev
Full example
how to
will be most valuable.Two steps to finish:
- Include the header files. If you set everything as default, the headers will be installed at
/usr/include/boost
. 2. Select the links you're going to use during compiling. It's default location is
/usr/lib
ATTENTION: It seems to me that the
-lboost_system
is always needed. So be careful if you need -lboost_filesystem or some libs else.