[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: what include directories are searched by g++?
From: |
Bernd Strieder |
Subject: |
Re: what include directories are searched by g++? |
Date: |
Mon, 24 Apr 2006 19:04:42 +0200 |
User-agent: |
KNode/0.10.2 |
Hello,
Ed Hartnett wrote:
> This seems to find iostream in
> /usr/lib/gcc/i386-redhat-linux/3.4.4/../../../../include/c++/3.4.4/iostream
>
> How does it know to look in that directory? I don't tell it to look
> there, but it finds iostream anyway.
See the manual, look for the option "-print-search-dirs".
A complete description would fill pages. There are options to print the
builtin paths, to influence them in various ways, there are environment
variables.
Bernd Strieder