Click to See Complete Forum and Search --> : g++ with RH6.2


chimaybleue
02-22-2001, 07:15 AM
g++ is very buggy with RH6.2 : no way to make it properly compile+execute a simple prog like :

#include <iostream.h>

main() {
cout <<"Hello world !"; }

It does the display only if I add a \n ...

Does anyone else have the same prob ?

andrzej
02-22-2001, 07:28 AM
It's not a bug in g++, it's a feature of bash (?).

f'lar
02-22-2001, 11:48 AM
Bug, feature. What's the difference?

chimaybleue
02-22-2001, 12:56 PM
On the debian sys of a friend of mine, it works perfectly ... And he has bash !

[ 22 February 2001: Message edited by: chimaybleue ]

andrzej
02-22-2001, 02:08 PM
Well, I've seen this on a hp machine (using gcc).

I've tried it now on the same hp and my linux box: no problems now.

I still doubt that this is a bug in g++.
You don't name your program 'test', do you ?

kmj
02-22-2001, 03:21 PM
It's not a bug; and it's not related to bash, I believe. I don't know if it's OS or compiler specific, but on some systems, programs don't flush standard output buffers until they receive a newline. It's an efficiency thing.