You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by Brad Settlemyer <bw...@cox.rr.com> on 2002/03/05 03:56:51 UTC
Link problem, must be simple
Hello,
I'm back, with a silly problem where I must be overlooking something since
the samples link. I can't resolve some symbols, and I don't understand why.
Again, I'm using gcc 3.0.3, and here is my link line and its output:
(link cmd, hopefully it will be readable):
/usr/local/gcc-3.0.3/bin/g++ -DLINUX -fpic
/home/bsettlem/dev/xmlweb/src/xml/test/SimpleXMLTest.o
/home/bsettlem/dev/xmlweb/src/xml/AuthorHandler.o -L/usr/local/lib
-L/home/bsettlem/dev/xmlweb/xerces/lib -lxerces-c1_6_0 -o
/home/bsettlem/dev/xmlweb/src/xml/test/simple_test
(error output):
/home/bsettlem/dev/xmlweb/src/xml/AuthorHandler.o: In function
`DefaultHandler::fatalError(SAXParseException const&) ':
/home/bsettlem/dev/xmlweb/src/xml/AuthorHandler.o(.gnu.linkonce.t._ZN14Defaul
tHandler10fatalErrorERK17SAXParseException+0x24): undefined reference to
`SAXParseException::SAXParseException(SAXParseException const&)'
/home/bsettlem/dev/xmlweb/src/xml/AuthorHandler.o(.gnu.linkonce.t._ZN14Defaul
tHandler10fatalErrorERK17SAXParseException+0x2d): undefined reference to
`SAXParseException::~SAXParseException()'
collect2: ld returned 1 exit status
make: *** [/home/bsettlem/dev/xmlweb/src/xml/test/simple_test] Error 1
Again, thanks for any help,
Brad
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
Re: Link problem, must be simple
Posted by Brad Settlemyer <bw...@cox.rr.com>.
OK, it was simple. Really, if the samples documented their dependencies with
full includes (rather than having the minimal set of includes), this wouldn't
have killed me. I'm not used to gcc's error messages, so I didn't realize I
needed to check and see if those functions were inline, which they were.
Included sax/SAXParseException.hpp, and that solved it. Pretty stupid on my
part. Sorry bout the interruption.
Brad
On Monday 04 March 2002 09:56 pm, you wrote:
> Hello,
>
> I'm back, with a silly problem where I must be overlooking something
> since the samples link. I can't resolve some symbols, and I don't
> understand why. Again, I'm using gcc 3.0.3, and here is my link line and
> its output:
>
> (link cmd, hopefully it will be readable):
> /usr/local/gcc-3.0.3/bin/g++ -DLINUX -fpic
> /home/bsettlem/dev/xmlweb/src/xml/test/SimpleXMLTest.o
> /home/bsettlem/dev/xmlweb/src/xml/AuthorHandler.o -L/usr/local/lib
> -L/home/bsettlem/dev/xmlweb/xerces/lib -lxerces-c1_6_0 -o
> /home/bsettlem/dev/xmlweb/src/xml/test/simple_test
>
> (error output):
> /home/bsettlem/dev/xmlweb/src/xml/AuthorHandler.o: In function
> `DefaultHandler::fatalError(SAXParseException const&) ':
> /home/bsettlem/dev/xmlweb/src/xml/AuthorHandler.o(.gnu.linkonce.t._ZN14Defa
>ul tHandler10fatalErrorERK17SAXParseException+0x24): undefined reference to
> `SAXParseException::SAXParseException(SAXParseException const&)'
> /home/bsettlem/dev/xmlweb/src/xml/AuthorHandler.o(.gnu.linkonce.t._ZN14Defa
>ul tHandler10fatalErrorERK17SAXParseException+0x2d): undefined reference to
> `SAXParseException::~SAXParseException()'
> collect2: ld returned 1 exit status
> make: *** [/home/bsettlem/dev/xmlweb/src/xml/test/simple_test] Error 1
>
> Again, thanks for any help,
> Brad
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org