Mail Archives: djgpp/1998/05/28/20:03:49
From: | Flavio Poletti <poletti AT writeme DOT com>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | RHIDE, gcc and gpp
|
Date: | Thu, 28 May 1998 23:22:36 +0200
|
Organization: | Telecom Italia Net
|
Message-ID: | <356DD59B.AD9B417C@writeme.com>
|
Reply-To: | flavpol AT tin DOT it
|
NNTP-Posting-Host: | roma27-21.tin.it
|
Mime-Version: | 1.0
|
Lines: | 47
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Hi to all (again!),
I've seen my last message was not complete :)
I've this very problem. I read that I can invoke gcc instead of gpp for
compiling C++ programs. This is particularly important because RHIDE
_always_ call gcc for compiling. When I call:
--------- "gcc -o target.exe target.cc"
all I get is some errors among which:
c:/djgpp/tmp/ccaaaaaa2.o(.text+0x193):targmain.cpp: undefined reference
to `ostream::operator<<(char const *)'
c:/djgpp/tmp/ccaaaaaa2.o(.text+0x201):targmain.cpp: undefined reference
to `cout'
c:/djgpp/tmp/ccaaaaaa2.o(.text+0x206):targmain.cpp: undefined reference
to `ostream::operator<<(char const *)'
--------- "gcc -o target.exe target.cc -lstdcx"
all I get is some errors among which:
c:/djgpp/lib/libstdcx.a(stdiostream.o)(.text+0x82d):stdiostream.cc:
undefined reference to `__rtti_class'
c:/djgpp/lib/libstdcx.a(stdiostream.o)(.text+0x96f):stdiostream.cc:
undefined reference to `__rtti_si'
--------- "gpp -o target.exe target.cc"
it all works fine.
I want to underline that I have copied libstdcxx.a into libstdcx.a, to
fix a previous error in finding this library. Is it possible I'm such a
beast that I'm the unique to experience this trouble? It's nasty because
I can't debug (and I've become really fond in DJGPP!).
TIA,
Flavio Poletti.
--
Flavio Poletti
email: poletti AT writeme DOT com
La libertà è lì, alla portata di tutti, come la chitarra...
... ognuno suona come vuole, e tutti suonano come vuole la libertà...
- Raw text -