CompuServe Messages

GNU C compiler?

    15-Mar-93 00:38:24
Sb: #32887-GNU C compiler?
Fm: Brian Bartlett 72037,570
To: mark hinz 74206,1453
Mark, I downloaded the GCC1.LHA and GCC2.LHA and installed it. Ran into a few problems though, most of which I could fix. This last problem I'm having has me stumped though. I'm compiling this simple C++ program: //Hello.c – First program in C++ #include <stream.h> main() { cout << "C++ is an improved C." << "\n"; } with the following compiler invocation: gcc hello.c -lg++ -mshort and I get this back: t:1.o: Definition of symbol ___ls__FR7ostreams (multiply defined) gcc:lib/libg++.a(iostream.o): Definition of symbol ___ls__FR7ostreams (multiply defined) Do you, or anyone here, have any ideas on how to fix this? BTW, the same code did compile on the previous version that was in the libs here. Brian ->on AutoPilot