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

Re: [linux-team] gcc et variable pour rechercher les <includes>



Frédéric Detienne wrote:
> 
> Ave,
> 
> dans gcc, on peut utiliser l'option -I pour specifier un repertoire ou gcc ira chercher les fichers specifies par
> 
> #include <x>
> 
> La question du jour: peut-on faire la meme chose en definissant une variable d'environnement plutot que le switch -i ?

Yep tout à fait, "info gcc" => index => environment variables
nous apprend que : 

`C_INCLUDE_PATH'
`CPLUS_INCLUDE_PATH'
`OBJC_INCLUDE_PATH'
     These environment variables pertain to particular languages.  Each
     variable's value is a colon-separated list of directories, much
     like `PATH'.  When GNU CC searches for header files, it tries the
     directories listed in the variable for the language you are using,
     after the directories specified with `-I' but before the standard
     header file directories.
                                  
> 
> Merci,

De rien, hope this will help.

A+

Raff.
---------
Visit the Linux Supertore Online: http://www.redcorp.com !
If you want to be deleted from the list, send a mail to
majordomo@rtfm.be with "unsubscribe linux-team" in the body.