C++ and 2.95.1--Any problems noted?
George T. Talbot
george@moberg.com
Mon Aug 23 13:47:00 GMT 1999
I just downloaded, compiled and installed 2.95.1 on a plain-vanilla x86
Linux Mandrake 6.0 system. The C library installed is glibc2.1.1pre2
compiled with egcs 1.1.2.
The configure command I used was:
../src/configure --prefix=/usr --enable-shared --enable-threads
I then did "make bootstrap" followed by "make install". Everything
worked.
Then, when I went to compile my C++ program, it died in linking with
errors where it can't find:
std::terminate(void)
ostream& operator<< <int>(ostream&, smanip<int> const &)
The program compiled and ran fine w/EGCS 1.1.2.
Any ideas? I've been pulling my hair out with this all day. Note that
if I use the standard egcs 1.1.2 installation that came preinstalled on
Linux Mandrake, it gives me errors on std::terminate(), but not the
operator<< thing.
Thanks in advance.
--
George T. Talbot
<george@moberg.com>
P.S. Here's some of the output of the link phase, in case you're
interested...
g++ -o xml2sc hashtable.ot xmlparse.ot xmlrole.ot xmltok.ot rwlock.ot
assoc.ot Attribute.ot MatchingVisitor.ot NamedElement.ot Symbol.ot
Tag.ot ValueVisitor.ot XMLInputBuilder.ot XMLOutputVisitor.ot FileTag.ot
LazyTag.ot DirTag.ot SettingsManager.ot TreeVisitor.ot TreeBuilder.ot
OutputVisitor.ot SettingChangeNotifier.ot ServiceHeaderBuilder.ot
ServiceImplBuilder.ot xml2cpp.ot TypeRegistry.ot cstringostream.ot
ReferenceList.ot ComponentHeaderBuilder.ot ComponentImplBuilder.ot
LinkTag.ot Service.ot Component.ot PrintFields.ot String.ot
Threading_Linux.ot JavaServiceBuilder.ot -lpthread
Attribute.ot: In function `CAttribute::CAttribute(CTag *, CString const
&)':
/home/george/working/mrc/tools/xml2sc/../../src/settingtree/Attribute.cpp:60:
undefined reference to `std::terminate(void)'
Attribute.ot: In function `CAttribute::CAttribute(CTag *, CSymbol const
*)':
/home/george/working/mrc/tools/xml2sc/../../src/settingtree/Attribute.cpp:65:
undefined reference to `std::terminate(void)'
Attribute.ot: In function `CAttribute::SetValue(long, char const *)':
/home/george/working/mrc/tools/xml2sc/../../src/settingtree/Attribute.cpp:75:
undefined reference to `std::terminate(void)'
MatchingVisitor.ot: In function `CLinkTag type_info function':
/home/george/working/mrc/tools/xml2sc/../../src/settingtree/MatchingVisitor.cpp(.text+0xb2):
undefined reference to `std::terminate(void)'
/home/george/working/mrc/tools/xml2sc/../../src/settingtree/MatchingVisitor.cpp(.text+0x2f1):
undefined reference to `std::terminate(void)'
MatchingVisitor.ot(.text+0x381):/home/george/working/mrc/tools/xml2sc/../../src/settingtree/MatchingVisitor.cpp:
more undefined references to `std::terminate(void)' follow
XMLOutputVisitor.ot: In function `CXMLOutputVisitor type_info function':
/home/george/working/mrc/tools/xml2sc/../../src/xmlparse/XMLOutputVisitor.cpp(.text+0x2ae):
undefined reference to `ostream & operator<<<int>(ostream &, smanip<int>
const &)'
/home/george/working/mrc/tools/xml2sc/../../src/xmlparse/XMLOutputVisitor.cpp(.text+0x2c0):
undefined reference to `ostream & operator<<<int>(ostream &, smanip<int>
const &)'
XMLOutputVisitor.ot: In function `CXMLOutputVisitor::VisitTag(CTag *)':
/home/george/working/mrc/tools/xml2sc/../../src/xmlparse/XMLOutputVisitor.cpp:230:
undefined reference to `ostream & operator<<<int>(ostream &, smanip<int>
const &)'
/home/george/working/mrc/tools/xml2sc/../../src/xmlparse/XMLOutputVisitor.cpp:230:
undefined reference to `ostream & operator<<<int>(ostream &, smanip<int>
const &)'
/home/george/working/mrc/tools/xml2sc/../../src/xmlparse/XMLOutputVisitor.cpp:268:
undefined reference to `ostream & operator<<<int>(ostream &, smanip<int>
const &)'
XMLOutputVisitor.ot:/home/george/working/mrc/tools/xml2sc/../../src/xmlparse/XMLOutputVisitor.cpp:268:
more undefined references to `ostream & operator<<<int>(ostream &,
smanip<int> const &)' follow
More information about the Gcc
mailing list