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
The preprocessor can tell you what it uses
You can add directories to the search path by setting the
C_INCLUDE_PATH
and/orCPLUS_INCLUDE_PATH
environment variiables