This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: <command line>: warning: "cpu" re-asserted ??
- From: Claudio Bley <bley at cs dot uni-magdeburg dot de>
- To: "R J" <kleric_ at hotmail dot com>
- Cc: help-gcc at gnu dot org
- Date: Wed, 28 Nov 2001 00:41:12 +0100
- Subject: Re: <command line>: warning: "cpu" re-asserted ??
- References: <F256MGLoU2gOHpM2yqO00004d60@hotmail.com>
>>>>> "R J" == R J <kleric_@hotmail.com> writes:
R J> I'm just starting to learn c++ and wrote a little 'hello
R J> world' program... // Hello World //
R J> #include <iostream.h>
R J> main() { cout << "Hello World"; return 0; }
R J> but when I try to compile, it outputs this:
R J> <command line>: warning: "cpu" re-asserted <command line>:
R J> warning: "machine" re-asserted first.cpp:3:22: iostream.h: No
R J> such file or directory
R J> I have no idea what this means, and I can't find any useful
R J> documentation on it anywhere on the web. I'm using gcc 3.0.1
R J> on RH6 linux 2.4.4 Does anyone know what's going on here?
R J> _________________________________________________________________
R J> Get your FREE download of MSN Explorer at
R J> http://explorer.msn.com/intl.asp
At first let me correct your program:
#include <iostream>
int main()
{
std::cout << "Hello World";
return 0;
}
Then, may I ask what your command line looks like when you try to
compile that program?
Usually, 'g++ first.cpp' should work and produce a file 'a.out'.
Claudio