Re: g++ file doesn't run
In message <[🔎] 19970322214607.03124@yallara.cs.rmit.edu.au>, Hamish Moffatt writes
:
> On Mar 03, 1997 at 10:23:30PM -0500, Jeff Shilt wrote:
> > Thanks for the help - it does compile with g++ instead of gcc, but the exec
->utable produced isn't doing anything. Here's what i'm doing:
> >
> > //test.c
> > #include <iostream.h>
> >
> > main(){
> > cout << "Hello there.";
> > }
> >
> > The test file doesn't print out anything when I run it.
>
> As I understand it, Unix terminal IO is buffered, so nothing will
> be written until a newline is sent. You never sent one, so all
> bets are off; the standards don't guarantee anything if you don't
> send at least one new line. (Similarly by default even character
> by character input won't see anything until the user presses return).
>
I think buffers are suposed to get flushed when a program terminates
normaly, but I would try this anyway if nofing else helps :) The other
sugestion on the list (another 'test' is run) is more likly. You can try
runing Your own 'test' by spesifying the path (./test).
/Lars
>
> Hamish
> --
> Hamish Moffatt, moffatt@yallara.cs.rmit.edu.au, Melbourne, Australia.
> Student, computer science & computer systems engineering. 3rd year, RMIT.
> http://yallara.cs.rmit.edu.au/~moffatt CPOM: [**** ] 40%
> PGP key available from web page above.
>
Reply to: