Mail Archives: djgpp/2001/11/05/06:03:20
Message-ID: | <3BE67117.5020203@maxi-tip.cz>
|
Date: | Mon, 05 Nov 2001 11:59:35 +0100
|
From: | Igor Bujna <igor DOT bujna AT maxi-tip DOT cz>
|
Organization: | =?ISO-8859-2?Q?S=E1zkov=E1=20kancel=E1=F8?= Maxi-tip a.s.
|
User-Agent: | Mozilla/5.0 (Windows; U; Win98; en-US; rv:0.9.5) Gecko/20011011
|
X-Accept-Language: | cs, en-us
|
MIME-Version: | 1.0
|
To: | djgpp <djgpp AT delorie DOT com>
|
Subject: | GPP problem
|
X-Virus-Scanned: | by AMaViS perl-11
|
Reply-To: | djgpp AT delorie DOT com
|
Hi,
i have this c++ example file(o.cc):
#include <iostream.h>
int main()
{
cout << "Well, hi there.\n";
return 0;
}
When i compile this(gcc o.cc -lstdcxx) i get this errors.
Where is problem?
Thank you
x:/djgpp/lib/libstdcxx.a(iostream.o)(.text+0x1d50):iostream.cc:
undefined reference to `__rtti_class'
x:/djgpp/lib/libstdcxx.a(iostream.o)(.text+0x212c):iostream.cc:
undefined reference to `__rtti_class'
x:/djgpp/lib/libstdcxx.a(iostream.o)(.text+0x261b):iostream.cc:
undefined reference to `__rtti_class'
x:/djgpp/lib/libstdcxx.a(iostream.o)(.text+0x2642):iostream.cc:
undefined reference to `__rtti_class'
x:/djgpp/lib/libstdcxx.a(iostream.o)(.text+0x265b):iostream.cc:
undefined reference to `__rtti_class'
x:/djgpp/lib/libstdcxx.a(iostream.o)(.text+0x27bb):iostream.cc: more
undefined references to `__rtti_class' follow
x:/djgpp/lib/libstdcxx.a(streambuf.o)(.text+0x709):streambuf.cc:
undefined reference to `__rtti_si'
x:/djgpp/lib/libstdcxx.a(streambuf.o)(.text+0x9e5):streambuf.cc:
undefined reference to `__rtti_si'
x:/djgpp/lib/libstdcxx.a(streambuf.o)(.text+0xf4c):streambuf.cc:
undefined reference to `__rtti_si'
x:/djgpp/lib/libstdcxx.a(streambuf.o)(.text+0xf66):streambuf.cc:
undefined reference to `__rtti_si'
x:/djgpp/lib/libstdcxx.a(streambuf.o)(.text+0x1137):streambuf.cc:
undefined reference to `__rtti_user'
x:/djgpp/lib/libstdcxx.a(streambuf.o)(.text+0x1163):streambuf.cc:
undefined reference to `__rtti_user'
x:/djgpp/lib/libstdcxx.a(filebuf.o)(.text+0x43):filebuf.cc: undefined
reference to `__throw'
x:/djgpp/lib/libstdcxx.a(filebuf.o)(.text+0x61):filebuf.cc: undefined
reference to `terminate(void)'
x:/djgpp/lib/libstdcxx.a(filebuf.o)(.text+0xa4):filebuf.cc: undefined
reference to `__throw'
x:/djgpp/lib/libstdcxx.a(filebuf.o)(.text+0xc1):filebuf.cc: undefined
reference to `terminate(void)'
x:/djgpp/lib/libstdcxx.a(filebuf.o)(.text+0x118):filebuf.cc: undefined
reference to `__throw'
x:/djgpp/lib/libstdcxx.a(filebuf.o)(.text+0x135):filebuf.cc: undefined
reference to `terminate(void)'
x:/djgpp/lib/libstdcxx.a(stdiostream.o)(.text+0x41):stdiostream.cc:
undefined reference to `__throw'
x:/djgpp/lib/libstdcxx.a(stdiostream.o)(.text+0x61):stdiostream.cc:
undefined reference to `terminate(void)'
x:/djgpp/lib/libstdcxx.a(stdiostream.o)(.text+0x575):stdiostream.cc:
undefined reference to `__rtti_si'
x:/djgpp/lib/libstdcxx.a(stdiostream.o)(.text+0x5d0):stdiostream.cc:
undefined reference to `__rtti_class'
x:/djgpp/lib/libstdcxx.a(stdiostream.o)(.text+0x706):stdiostream.cc:
undefined reference to `__throw'
x:/djgpp/lib/libstdcxx.a(stdiostream.o)(.text+0x711):stdiostream.cc:
undefined reference to `__throw'
x:/djgpp/lib/libstdcxx.a(stdiostream.o)(.text+0x781):stdiostream.cc:
undefined reference to `terminate(void)'
x:/djgpp/lib/libstdcxx.a(stdiostream.o)(.text+0x800):stdiostream.cc:
undefined reference to `__rtti_class'
x:/djgpp/lib/libstdcxx.a(stdiostream.o)(.text+0x929):stdiostream.cc:
undefined reference to `__throw'
x:/djgpp/lib/libstdcxx.a(stdiostream.o)(.text+0x931):stdiostream.cc:
undefined reference to `__throw'
x:/djgpp/lib/libstdcxx.a(stdiostream.o)(.text+0x9a1):stdiostream.cc:
undefined reference to `terminate(void)'
collect2: ld returned 1 exit status
- Raw text -