Hi All,
I am currently running a MacBook Pro with Mac OS X Version 10.5.8. I downloaded XCode version 2.5 and installed it.
Further, I added /XCode2.5/usr/bin to my PATH.
Here is hello.cc program:
#include <iostream>
int main(void)
{
std::cout << "hello, world" << std:endl;
}
Here is what happens: $> g++ hello.cc
hello.cc: In function ‘int main()’: hello.cc:5: error: ‘cout’ is not a member of ‘std’ hello.cc:5: error: ‘endl’ is not a member of ‘std’
Is setting the PATH not sufficient to run the gcc utilities from the command line on a Mac?
Thanks,
Charlie