Where does gcc keep its built-in include directory paths
Posted
by Charles
on Server Fault
See other posts from Server Fault
or by Charles
Published on 2010-06-02T20:22:55Z
Indexed on
2010/06/02
20:26 UTC
Read the original article
Hit count: 247
GCC has built in include directories for certain standard headers. I just need to know where this list is. My newly compiled gcc will not compile my little test C++ program because it cannot find standard headers. I think it fails because of some config options I used to make my file system more organized. I set the bindir and libdir, which I think might have screwed up the built-in include paths for some reason.
Program (dummy.c):
#include <iostream>
void main(){}
Command:
g++ dummy.c
Error:
dummy.c:1:20: fatal error: iostream: No such file or directory
© Server Fault or respective owner