skipper
skipper

Reputation: 255

how to shadow system boost library?

I was compiling pyrosetta on the cluster(I have no root privilege),pyrosetta requires boost version 1.38,and i install boost 1.38 in my home dir.But the cluster have some version of boost installed in /usr/include/boost/, which is not compatible with pyrosetta code. Is there any way to shadow the system boost library and use my installed version?

Upvotes: 2

Views: 167

Answers (2)

villekulla
villekulla

Reputation: 1085

Use the -isystem <dir> preprocessor option. This shall achieve what you need.

Excerpt from the cpp manpage (which also applies to 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.

Upvotes: -1

xizzhu
xizzhu

Reputation: 905

You should set the include path and library path to use your own install, instead of the one provided by the system. Here's a tutorial on this for g++.

Upvotes: 2

Related Questions