Re: help with 'hello world'

2004-08-26 Thread cpghost
Replying to self. Apologies. > use namespace std; s/use/using/ Sorry for the typo. -cpghost. -- Cordula's Web. http://www.cordula.ws/ ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send

Re: help with 'hello world'

2004-08-26 Thread cpghost
On Wed, Aug 25, 2004 at 07:40:07PM -0700, David Syphers wrote: > #include > > int main() > { > cout << "Hello World"; std::cout << "Hello World"; // or: std::cout << "Hello World" << std::endl; > return 0; // There's nothing wrong with this, but the Standard says // that main would

Re: help with 'hello world'

2004-08-25 Thread Peter Ulrich Kruppa
On Wed, 25 Aug 2004, Josh Paetzel wrote: On Wednesday 25 August 2004 21:51, you wrote: On Wednesday 25 August 2004 07:46 pm, Kris Kennaway wrote: On Wed, Aug 25, 2004 at 07:40:07PM -0700, David Syphers wrote: This compiles fine on SunOS using egcs-2.91.66. However, it fails on FreeBSD (gcc 3.4.2) a

Re: help with 'hello world'

2004-08-25 Thread Josh Paetzel
On Wednesday 25 August 2004 21:51, you wrote: > On Wednesday 25 August 2004 07:46 pm, Kris Kennaway wrote: > > On Wed, Aug 25, 2004 at 07:40:07PM -0700, David Syphers wrote: > > > This compiles fine on SunOS using egcs-2.91.66. However, it > > > fails on FreeBSD (gcc 3.4.2) and RedHat (gcc 3.2.3) w

Re: help with 'hello world'

2004-08-25 Thread David Syphers
On Wednesday 25 August 2004 07:46 pm, Kris Kennaway wrote: > On Wed, Aug 25, 2004 at 07:40:07PM -0700, David Syphers wrote: > > This compiles fine on SunOS using egcs-2.91.66. However, it fails on > > FreeBSD (gcc 3.4.2) and RedHat (gcc 3.2.3) with the bizarre error "`cout' > > undeclared". > > How

Re: help with 'hello world'

2004-08-25 Thread Kris Kennaway
On Wed, Aug 25, 2004 at 07:40:07PM -0700, David Syphers wrote: > It's been a while since I wrote anything in C++, but this is sad - I can't get > hello world to compile. Could some kind person please tell me what, exactly, > is wrong with: > > #include > > int main() > { > cout << "Hello World

help with 'hello world'

2004-08-25 Thread David Syphers
It's been a while since I wrote anything in C++, but this is sad - I can't get hello world to compile. Could some kind person please tell me what, exactly, is wrong with: #include int main() { cout << "Hello World"; return 0; } This compiles fine on SunOS using egcs-2.91.66. However, it fails