From: Randy Huesos (rando@pension.UUCP)
Date: 02/11/93


From: rando@pension.UUCP (Randy Huesos)
Subject: SLS 99.2 G++ 2.3.3 where is _cout
Date: 11 Feb 1993 18:31:51 GMT

Link fails for iostreams package!
 
The following code:
#include <iostream.h>
main()
{
        cout << "Hi There!\n";
}

Compile:
g++ -o hi hi.cc

---> compiles fine, but when it tries to link (-lg++ -lgcc -lc -lgcc)
it can't find _cout or the overloaded '<<' operator.
Found these in libg.a, but when i link (-lg -lg++ -lgcc -lc)
it links fine but dumps core on execute.

Please let me know what is wrong!

# ----------------------------------------- 8==8
# !uunet!uplherc!wicat!pension!rando
# !uunet!uplherc!wicat!pension!hoser!rando
# Curator of Loud Ties