From: "Antoine Mathys" Newsgroups: comp.os.msdos.djgpp Subject: Unusual linking problem using RHIDE Date: Wed, 13 Jan 1999 22:00:22 +0100 Organization: MB DENTAL SA Lines: 61 Message-ID: <77j1rh$shn$1@bw107zhb.bluewin.ch> NNTP-Posting-Host: sio22pub79.bluewin.ch X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.0810.800 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.0810.800 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hello, I know ther have been billions of questions about LFN, c++ programs compiling, lstdcxx, etc. BUT, I still encouter this problem. (By the way, don't you think it's not a pure hazard if almost everyone encounters this problem ?) I read section 8 of the FAQ, and checked DJGPP.ENV. In fact, I no longer encounter the -lstdcxx error message (a big step). Instead, I encouter the following surprising errors when I try compiling within RHIDE, although I downloaded evreything correctly : Error: c:/djgpp/lib/libstdcxx.a(iostream.o)(.text+0x1b9d):iostream.cc: undefined reference to `__rtti_class' Error: c:/djgpp/lib/libstdcxx.a(iostream.o)(.text+0x1cdd):iostream.cc: undefined reference to `__rtti_class' Error: c:/djgpp/lib/libstdcxx.a(iostream.o)(.text+0x1f4e):iostream.cc: undefined reference to `__rtti_class' Error: c:/djgpp/lib/libstdcxx.a(iostream.o)(.text+0x2565):iostream.cc: undefined reference to `__rtti_class' Error: c:/djgpp/lib/libstdcxx.a(iostream.o)(.text+0x28b9):iostream.cc: undefined reference to `__rtti_class' Error: c:/djgpp/lib/libstdcxx.a(streambuf.o)(.text+0x703):streambuf.cc: undefined reference to `__rtti_si' Error: c:/djgpp/lib/libstdcxx.a(streambuf.o)(.text+0xb97):streambuf.cc: undefined reference to `__rtti_si' Error: c:/djgpp/lib/libstdcxx.a(streambuf.o)(.text+0xe23):streambuf.cc: undefined reference to `__rtti_si' Error: c:/djgpp/lib/libstdcxx.a(streambuf.o)(.text+0xe55):streambuf.cc: undefined reference to `__rtti_user' Error: c:/djgpp/lib/libstdcxx.a(streambuf.o)(.text+0xe85):streambuf.cc: undefined reference to `__rtti_user' Error: c:/djgpp/lib/libstdcxx.a(filebuf.o)(.text+0x46):filebuf.cc: undefined reference to `__eh_pc' Error: c:/djgpp/lib/libstdcxx.a(filebuf.o)(.text+0x4f):filebuf.cc: undefined reference to `__throw' There are many more lines like this. If I understand well, the linker finds libstdcxx.a, but disagrees with it --> what can I do since it is the correct file ? In fact, when I use the command line g++ hello.cpp -o hello.exe I get the exspected hello.exe file without any error. Does someone have an explanation ? Here is the code : #include int main() { cout << "Hi everybody !"; return 0; }