[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
what include directories are searched by g++?
From: |
Ed Hartnett |
Subject: |
what include directories are searched by g++? |
Date: |
Mon, 24 Apr 2006 08:52:14 -0600 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) Emacs/21.4 (gnu/linux) |
Howdy all!
What directories will be searched for header files by g++, other than
those I specify with -I?
For example this program:
#include <iostream>
using namespace std;
int
main(void)
{
cout<<"Howdy!\n";
return 0;
}
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.
Thanks,
Ed
--
Ed Hartnett -- ed@unidata.ucar.edu
- what include directories are searched by g++?,
Ed Hartnett <=