On Thu, 16 Apr 1998, Chris Cogdon wrote:
> Nasty problem with redhat-5.0 that someone (hopehope) can help me with:
>
> I've got a redhat-5.0 installation with everything installed, and all the
> updates applied. (The gimmegimme option ;)
>
> I write this simple C++ program:
>
> #include <iostream.h>
>
> void main () {
>
> cout << "Hello world\n";
>
> }
>
> And compile with:
>
> cc -o t1 -lg++ t1.cpp
>
> It compiles, but when I run, I get no output whatsoever. If I add in the
> following line:
>
> cout.flush ();
>
> it segfaults.
>
>
> Now, this seems really bizzare, and is probably just a installation
> error... but... what? Any pointers, anyone ?
Once again, I think I've answered my own question :)
If I link against libstdc++ instead (-lstdc++) it works fine. Probably
just a misunderstanding on my part about all the different libraries.
*sigh* More learning to do! When /will/ I get time to play nethack? :)
("`-/")_.-'"``-._ Chris Cogdon <[EMAIL PROTECTED]>
. . `; -._ )-;-,_`)
(v_,)' _ )`-.\ ``-' OzEmail Interline
_.- _..-_/ / ((.' 76-78 Jolimont St. Jolimont VIC 3002 Australia
((,.-' ((,/ fL Phone +61 3 9654 0799 Fax +61 3 9654 0788
--
PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips /mailing-lists
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject.