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: <command line>: warning: "cpu" re-asserted ??


>>>>> "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


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