To: mmathys AT bluewin DOT ch Cc: djgpp AT delorie DOT com Date: Tue, 16 Mar 1999 17:16:29 -0800 Subject: Unusual linking problem using RHIDE Message-ID: <19990317.101129.9014.0.xais@juno.com> X-Mailer: Juno 1.49 X-Juno-Line-Breaks: 0-1,5-6,9-10,13-23,25-28,30-53,55-56,58-60,62,64-81 From: Sai Thao Reply-To: djgpp AT delorie DOT com Hey, I picked up your message off of the djgpp archives. I was wondering if you were still having the problem? I was having the same problem as you, compling and linking over and over agian just to get the same 'undefine' error messages. But if its still of use to you strangely in my depesperation in tinkering I use this command line: gxx -Wall -o test.exe mode13.cpp asmfunc.o -lgpp I don't know why this was special and linked perfectly when every other way I attempted failed. I used both gxx.exe and gcc.exe before. I hope this helps anyone else at all in figuring it out. Sai Thao ------------------------------------------ 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; } ___________________________________________________________________ You don't need to buy Internet access to use free Internet e-mail. Get completely free e-mail from Juno at http://www.juno.com/getjuno.html or call Juno at (800) 654-JUNO [654-5866]