iostream with gcc

Dave Korn dave.korn@artimi.com
Thu Oct 25 09:58:00 GMT 2007


On 25 October 2007 10:49, Peter M Lee wrote:

  Please keep it on the list, Peter.  http://cygwin.com/acronyms#PPIOSPE
explains why that's a good thing.  Re-directed.

> The result of using g++ is
> 
> $ g++ hello.cc
> 
> $
> 
> in other words nothing is output to the terminal - Peter M Lee

  That isn't any old nothing, that's specifically a "no error message" kind of
nothing.  Nothing was output to the terminal, but a file called 'a.exe' was
output to the current directory.

  Type "echo $?" to see the exit status of the gcc command:

/artimi/chips/earn/block/rom $ g++ hello.cc
/artimi/chips/earn/block/rom $ echo $?
0
/artimi/chips/earn/block/rom $ ./a.exe
Hello, world
/artimi/chips/earn/block/rom $


    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list