This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

GCC -3.1 problem with header files


Hi all-

I have what I think is probably a stupid error on my part, but I could 
use some help. A simple test code such as "test.C":

#include <iostream>

int main() {
    cout << " Main: running..." << endl;
    return 0;
}


will not compile with GCC 3.1. I get the following errors:

test.C: In function `int main()':
test.C:4: `cout' undeclared (first use this function)
test.C:4: (Each undeclared identifier is reported only once for each 
function    it appears in.)
test.C:4: `endl' undeclared (first use this function)


Obviously, g++ is not seeing the proper system "include" directory 
which on my RedHat system is: /usr/include/g++-v3.

What do I have to do to get GCC 3.1 to see the "include" directories?

TIA,
Steve


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]