如何影子系统升级库?

时间:2013-10-12 05:11:21

标签: c++ python boost binding

我在集群上编译pyrosetta(我没有root权限),pyrosetta需要boost版本1.38,我在我的主目录中安装boost 1.38.但是集群在/ usr / include / boost中安装了一些版本的boost /,与pyrosetta代码不兼容。 有没有办法影响系统升级库并使用我安装的版本?

2 个答案:

答案 0 :(得分:2)

您应该将包含路径和库路径设置为使用您自己的安装,而不是系统提供的安装。这是g++的{​​{3}}。

答案 1 :(得分:-1)

使用-isystem <dir>预处理器选项。这将达到你的需要。

摘自cpp联机帮助页(也适用于gcc)

-isystem dir

       Search dir for header files, after all directories specified by -I
       but before the standard system directories.  Mark it as a system
       directory, so that it gets the same special treatment as is applied
       to the standard system directories.