You are not logged in.

#1 2013-03-20 09:30:37

leetow2006
Member
Registered: 2013-02-13
Posts: 21

Ask for environment variable about head file and library file in Linux

I hear that environment variable about default directory for head file and library file
are C_INCLUDE_PATH and LD_LIBRARY_PATH,but I echo $LD_LIBRARY_PATH and
echo $C_INCLUDE_PATH,they are none,what are they?

Offline

#2 2013-03-20 18:00:20

i_love_penguins
Member
From: Germany
Registered: 2010-03-30
Posts: 46
Website

Re: Ask for environment variable about head file and library file in Linux

LD_LIBRARY_PATH is just an additional variable. If it is set, then the paths specified in it will be added to the current shared libraries. All "default" libraries (that exist on a system and are registered) are managed by ldconfig, which generates /etc/ld.so.cache out of standard paths like /lib, /lib64, /usr/lib ...

I can't tell you about C_INCLUDE_PATH since I don't know anything about this one, but I think it may behave the same way.

Offline

Board footer

Powered by FluxBB