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]

Re: gcc does not work on mac os x


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.



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