Ken Thompson wrote:
>>#include <iostream>
>>
>>int main()
>>{
>> cout << "Hello World!" << endl;
>> return(0);
>>}
>>
>>Try the above :)
>>
>
>[ken@spooky Desktop]$ ./hello1.cpp
>./kello1.cpp: line 4: syntax error near unexpected token `main()'
>./kello1.cpp: line 4: `int main()'
>
>> Been a long time, but shouldn't this be
>>
>> int main();
>>
>
>Tom and Dwain,
>Same error message using each of the suggestions.
><scratching head with a puzzled frown>
>The code comes right out of Sams "Teach yourself C++ in 24hrs" and in
>previous versions of MDK I've had it work.
>I'm going back to trying to learn C++, had to quit studies the first time
>around.
>
>
>------------------------------------------------------------------------
>
>Want to buy your Pack or Services from MandrakeSoft?
>Go to http://www.mandrakestore.com
>
Are you certain you have an iostream file? Are any other standard
headers needed? The older gcc series added standard headers by default
with wild abandon, but no more. 2.96 is strict but nothing compared to 3.0.
Civileme
Want to buy your Pack or Services from MandrakeSoft?
Go to http://www.mandrakestore.com