This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: how to switch between different versions shared libraires?


 wrote:

I installed mesa-7.4.1 at /usr/lib and /usr/include by official debian
packages, and I also installed mesa-7.6 at /usr/local/lib and
/usr/local/include by make install the source code of mesa, now I want
my program to link to the libs and includes in /usr/local, how could I
got it? thanks! (I do not use the autoconf to build and link my
program, I simply use g++ do it.)

You should set LD_LIBRARY_PATH to /usr/local/lib.
Other suggestions: http://www.debian-administration.org/article/Installing_two_versions_of_libraries_concurrently


Good luck,
   Yinon


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]