On Fri, May 24, 2002 at 12:30:57PM -0400, Michael Grabenstein wrote: > Two guesses: > 1) LD_LIBRARY_PATH needs to be set to include the correct libstdc++.so > ( you must be finding an older copy).
Huh? No! XMI2SSLHandler is not a class defined in libstdc++! > Or > 2) Your gcc was not compiled with "--enable-shared", with version 3 > and newer gcc this is default. Beneath version 3 it was not the > default... Why do you think so? No one forces you to use shared libraries. > On Wednesday, May 22, 2002, at 12:03 PM, Helge Hartmann wrote: > > >hi! > > > >i have a problem compiling my first sax based parser: > > > >/opt/local/gcc-2.95/bin/g++ -I../include > >-I/home/helge/xerces-c-src1_7_0/include -Wall -g -ggdb > >-DDEVELOPMENT -c main.cpp -o ../obj/solaris/main.o > >/opt/local/gcc-2.95/bin/g++ -g -L/home/helge/xerces-c-src1_7_0/lib/ > >../obj/solaris/main.o -lm -lsocket -lnsl -lxerces-c1_7_0 -o > >../bin/solaris/xmi2ssl > >Undefined first referenced > > symbol in file > >XMI2SSLHandler::ContentHandler virtual table../obj/solaris/main.o > >XMI2SSLHandler::ErrorHandler virtual table../obj/solaris/main.o > >XMI2SSLHandler::DTDHandler virtual table../obj/solaris/main.o > >XMI2SSLHandler virtual table ../obj/solaris/main.o > >XMI2SSLHandler::DeclHandler virtual table../obj/solaris/main.o > >XMI2SSLHandler::LexicalHandler virtual table../obj/solaris/main.o > >ld: fatal: Symbol referencing errors. No output written to > >../bin/solaris/xmi2ssl > > > > > >what ist going wrong? I assume, XMI2SSLHandler is a class, you implemented in a different cpp file? In this case you must add the object file generated from this cpp file to the object list on the linker command. Robert -- Robert Schiele Tel.: +49-621-181-2583 Dipl.-Wirtsch.informatiker mailto:[EMAIL PROTECTED]
msg06601/pgp00000.pgp
Description: PGP signature
