如何提振库添加到code :: Blocks的Linux中 [英] How to add boost library to Code::Blocks in Linux

查看:188
本文介绍了如何提振库添加到code :: Blocks的Linux中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何靴子库添加到code :: Blocks的项目为Linux操作系统Ubuntu。比如我想补充正则表达式库。

我已经安装了靴库:

 命令和apt-get安装libboost-ALL-dev的

完整的示例如何将是最有价值的。


解决方案

两个步骤完成:


  1. 包含头文件。如果你设置的一切,默认情况下,标题将被安装


  

/ 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:

  1. 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.

这篇关于如何提振库添加到code :: Blocks的Linux中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆