[MEGOLDVA]Új header fájl útvonal hozzáadása hogyan?

Fórumok

Hellosztok!

Olyan kérdésem van felétek, hogy hol lehet új header fájl útvonalat hozzáadni a rendszerhez? Mint a .so fájloknál a /etc/ld.so.conf -nál?

(hogy ne csak /usr/include és /usr/local/include legyen)

Hozzászólások

Ha gcc-re gondolsz, akkor
man gcc:
"
-I dir
Add the directory dir to the list of directories to be searched for header files.
Directories named by -I are searched before the standard system include
directories. If the directory dir is a standard system include directory, the
option is ignored to ensure that the default search order for system directories
and the special treatment of system headers are not defeated . If dir begins with
"=", then the "=" will be replaced by the sysroot prefix; see --sysroot and
-isysroot.
"

vagy

http://www.google.hu/search?hl=hu&source=hp&biw=1280&bih=636&q=gcc+incl…

Ha jól értettem a kérdést
--
RowCol

A C_INCLUDE_PATH , illetve a CPLUS_INCLUDE_PATH környezeti változókban lehet megadni más keresési utakat.

---
Science for fun...

Ez egy borzasztó rossz ötlet. Ott a makefile, tessék azt használni.

KDE4-t akarok fordítani, de nem akarom, hogy a /usr vagy /usr/local -ba szemeteljen, ezért minden függőségével (ami nem kevés) a /usr/local/kde4/ -be fordítom, és ha egyszer vissza akarok térni az alap debian rendszerhez, akkor csak simán rm -r /usr/local/kde4. Bár lehet csomival egyszerűbb... És ha pl a strigi a /usr/local/kde4 -ben van, akkor nem találja meg alapból a kdebase vagy aminek kell, ezért van erre szükségem.
---------------------------
Oszt jónapot!

És ha pl a strigi a /usr/local/kde4 -ben van, akkor nem találja meg alapból a kdebase vagy aminek kell, ezért van erre szükségem.

Erre az szokott lenni a megoldás, hogy akinek kell, annak megmondod, hogy hol keresse az adott könyvtár cuccait, általában valami --with-kde=/usr/local/kde4-szerű paraméterrel.

./configure --help a barátod.

Pl. a php ilyesmiket tud:

--with-libxml-dir[=DIR] LIBXML: libxml2 install prefix
--with-openssl[=DIR] Include OpenSSL support (requires OpenSSL >= 0.9.6)
--with-kerberos[=DIR] OPENSSL: Include Kerberos support
--with-jpeg-dir[=DIR] GD: Set the path to libjpeg install prefix
--with-png-dir[=DIR] GD: Set the path to libpng install prefix
--with-zlib-dir[=DIR] GD: Set the path to libz install prefix
--with-xpm-dir[=DIR] GD: Set the path to libXpm install prefix
--with-freetype-dir[=DIR] GD: Set the path to FreeType 2 install prefix
--with-t1lib[=DIR] GD: Include T1lib support. T1lib version >= 5.0.0 re