public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* <command line>: warning: "cpu" re-asserted ??
@ 2001-11-21  7:01 R J
  2001-11-21  7:11 ` Claudio Bley
  2001-11-27 15:12 ` R J
  0 siblings, 2 replies; 4+ messages in thread
From: R J @ 2001-11-21  7:01 UTC (permalink / raw)
  To: help-gcc

I'm just starting to learn c++ and wrote a little 'hello world' program...


// Hello World //

#include <iostream.h>

main()
{
cout << "Hello World";
return 0;
}


but when I try to compile, it outputs this:

<command line>: warning: "cpu" re-asserted
<command line>: warning: "machine" re-asserted
first.cpp:3:22: iostream.h: No such file or directory

I have no idea what this means, and I can't find any useful documentation on 
it anywhere on the web.
I'm using gcc 3.0.1 on RH6 linux 2.4.4
Does anyone know what's going on here?

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: <command line>: warning: "cpu" re-asserted ??
  2001-11-21  7:01 <command line>: warning: "cpu" re-asserted ?? R J
@ 2001-11-21  7:11 ` Claudio Bley
  2001-11-27 15:45   ` Claudio Bley
  2001-11-27 15:12 ` R J
  1 sibling, 1 reply; 4+ messages in thread
From: Claudio Bley @ 2001-11-21  7:11 UTC (permalink / raw)
  To: R J; +Cc: help-gcc

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* <command line>: warning: "cpu" re-asserted ??
  2001-11-21  7:01 <command line>: warning: "cpu" re-asserted ?? R J
  2001-11-21  7:11 ` Claudio Bley
@ 2001-11-27 15:12 ` R J
  1 sibling, 0 replies; 4+ messages in thread
From: R J @ 2001-11-27 15:12 UTC (permalink / raw)
  To: help-gcc

I'm just starting to learn c++ and wrote a little 'hello world' program...


// Hello World //

#include <iostream.h>

main()
{
cout << "Hello World";
return 0;
}


but when I try to compile, it outputs this:

<command line>: warning: "cpu" re-asserted
<command line>: warning: "machine" re-asserted
first.cpp:3:22: iostream.h: No such file or directory

I have no idea what this means, and I can't find any useful documentation on 
it anywhere on the web.
I'm using gcc 3.0.1 on RH6 linux 2.4.4
Does anyone know what's going on here?

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: <command line>: warning: "cpu" re-asserted ??
  2001-11-21  7:11 ` Claudio Bley
@ 2001-11-27 15:45   ` Claudio Bley
  0 siblings, 0 replies; 4+ messages in thread
From: Claudio Bley @ 2001-11-27 15:45 UTC (permalink / raw)
  To: R J; +Cc: help-gcc

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2001-11-27 23:45 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-11-21  7:01 <command line>: warning: "cpu" re-asserted ?? R J
2001-11-21  7:11 ` Claudio Bley
2001-11-27 15:45   ` Claudio Bley
2001-11-27 15:12 ` R J

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).