installation and compile problem

Bryce McKinlay bryce@mckinlay.net.nz
Thu Oct 9 22:21:00 GMT 2003


On Oct 10, 2003, at 10:25 AM, Bryce McKinlay wrote:

>> This is what I get:
>>
>>> /usr/local/bin/gcj-3.3.1 -fPIC -fjni -g -O -o DocumentTracer
>> --main=DocumentTracer  DocumentTracer.java
>> /tmp/ccVDxVEA.o(.text+0x54): In function
>> `DocumentTracer::DocumentTracer[in-charge]()':
>> /home/com_/Development/test-code/xerces-samples/samples/sax/ 
>> DocumentTracer.java:158: undefined reference to  
>> `org::xml::sax::helpers::DefaultHandler::DefaultHandler[in-charge]()'
>
> Looking at our org.xml.sax source, currently libgcj does not have the  
> DefaultHandler class. Thats why you're getting the link error. The SAX  
> stuff is public-domain, right? So we should be able to import an  
> updated version of this from somewhere?

Oops, forget about the above - DefaultHandler it is there. The problem  
is it has moved to another shared library, presumably this was done due  
to the duplicate class registration problem.

try adding something like "-l-org-xml-sax" to your gcj command line.

Regards

Bryce.




More information about the Java mailing list