Re: Preprocessor: Einbinden von Header Dateien

Bernhard Walle <[email protected]>
Newsgroups gmane.linux.suse.programming
Organization SUSE Linux Products GmbH
Message-ID <[email protected]>
* Thomas Hertweck [2008-11-11 20:41]:
> 
> Ich war uebrigens wie Bernhard auch der Meinung, dass -I. optional ist,
> der GCC macht das doch normal automatisch. Spielt aber in dem Falle hier
> keine Rolle, denke ich, weil es ja eh explizit angegeben ist.

-I. führt dazu dass <> auch im aktuellen Verzeichnis sucht. Aber ""
sucht immer im aktuellen Verzeichnis (also dem Verzeichnis der
Quellcodedatei, nicht dem Arbeitsverzeichnis des Compilers wenn du
gcc z.B. als gcc -o dir/prog dir/prog.c startest also in dir/, nicht
in .).


Gruß,
Bernhard
-- 
Bernhard Walle, SUSE LINUX Products GmbH, Architecture Development
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.