gcc does not work on mac os x

Eljay Love-Jensen eljay@adobe.com
Mon Jan 19 12:23:00 GMT 2004


Hi Tanja,

>this is the code:

That's not valid C++ (ISO 14882-1998) code.

Try this instead for your hallo.cpp source...
#include <iostream>

int main()
{
  std::cout << "hallo" << std::endl;
}

It appears that your C++ reference books are slightly out of date.

HTH,
--Eljay

PS:  I've been using GCC on Mac OS X for several years.




More information about the Gcc-help mailing list