Re: how to set standard system include directory

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Gavin Li wrote:
I want to add /usr/mylocal/include to standard system include directory, but
don't want to use -I/usr/mylocal/include, How can I make it.

The problem is I compiled library A, and installed to /usr/mylocal/include,
and then compile library B, which depends on A, so I have to make sure
configure program search headers in /usr/mylocal/include first, then other
standard system include directory. My system has another version A which
comes from the Fedora release, and I don't want B to use headers from this
Fedora release.

The usual way to handle this is to use a makefile.
If you use gcc, then another way is via the environment variable
C_INCLUDE_PATH

Mike
--
p="p=%c%s%c;main(){printf(p,34,p,34);}";main(){printf(p,34,p,34);}
This message made from 100% recycled bits.
You have found the bank of Larn.
I can explain it for you, but I can't understand it for you.
I speak only for myself, and I am unanimous in that!


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux