hello, i am trying to compile c++ code originally compiled on msvc++ on freebsd-4.6.2-release. i'm relatively new to freebsd, and this is my first attempt at coding on this platform. there are three source files, all of which compile. however, when i try to link them together, i get undefined references and other errors, such as
retrquote.o: In function `main': retrquote.o(.text+0x27): undefined reference to `endl(ostream &)' retrquote.o(.text+0x34): undefined reference to `cerr' retrquote.o(.text+0x39): undefined reference to `ostream::operator<<(char const *)' retrquote.o(.text+0x44): undefined reference to `ostream::operator<<(ostream &(*)(ostream &))' retrquote.o(.text+0x83): undefined reference to `XMLPlatformUtils::Initialize(void)' retrquote.o(.text+0x23a): undefined reference to `LocalFileInputSource::LocalFileInputSource(unsigned short const *)' retrquote.o(.text+0x3d1): undefined reference to `XMLPlatformUtils::Terminate(void)' retrquote.o(.text+0x413): undefined reference to `XMLException type_info function' retrquote.o(.text+0x478): undefined reference to `endl(ostream &)' [cut] retrquote.o: In function `NameIdPool<DTDEntityDecl>::findBucketElem(unsigned short const *, unsigned int &)': retrquote.o(.gnu.linkonce.t.findBucketElem__t10NameIdPool1Z13DTDEntityDeclPC UsRUi+0x26): undefined reference to `XMLString::hash(unsigned short const *, unsigned int)' retrquote.o(.gnu.linkonce.t.findBucketElem__t10NameIdPool1Z13DTDEntityDeclPC UsRUi+0x155): undefined reference to `XMLEntityDecl::getKey(void) const' retrquote.o(.gnu.linkonce.t.findBucketElem__t10NameIdPool1Z13DTDEntityDeclPC UsRUi+0x164): undefined reference to `XMLString::compareString(unsigned short const *, unsigned short const *)' retrquote.o: In function `NameIdPool<DTDEntityDecl>::put(DTDEntityDecl *)': retrquote.o(.gnu.linkonce.t.put__t10NameIdPool1Z13DTDEntityDeclP13DTDEntityD ecl+0x2c): undefined reference to `XMLEntityDecl::getKey(void) const' [cut] perhaps it's not finding the right libraries? i can post the source if it will help. all help is appreciated. mike To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
