Libxml2


Crog

Still Fresh
Joined
Nov 4, 2007
Messages
7
the package can be found here SDL Libs v211006

I have been trying to build a program with LibXml2 and am getting the following errors:
CODE

1>D:/GP2xDev/devkitGP2X/lib\libxml2.a(nanohttp.o): In function `xmlNanoHTTPConnectHost':
1>/home/Administrator/newtoolchain/libxml2-2.6.24/nanohttp.c(1004): warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
1>/home/Administrator/newtoolchain/libxml2-2.6.24/nanohttp.c(1050): warning: Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
1>D:/GP2xDev/devkitGP2X/lib\libxml2.a(xpath.o): In function `xmlXPathFormatNumber':
1>/home/Administrator/newtoolchain/libxml2-2.6.24/xpath.c(1461): undefined reference to `log10'
1>D:/GP2xDev/devkitGP2X/lib\libxml2.a(xpath.o): In function `xmlXPathRoundFunction':
1>/home/Administrator/newtoolchain/libxml2-2.6.24/xpath.c(7308): undefined reference to `fmod'
1>D:/GP2xDev/devkitGP2X/lib\libxml2.a(xpath.o): In function `xmlXPathCeilingFunction':......
1>D:/GP2xDev/devkitGP2X/lib\libxml2.a(xmlschemastypes.o): In function `_xmlSchemaDateAdd':
1>/home/Administrator/newtoolchain/libxml2-2.6.24/xmlschemastypes.c(3768): undefined reference to `floor' ....more undefined references to `floor' follow


(I trimed a bit out of there as floor and fmod come up a lot)

The libraries i have linking are:
CODE
SDL;pthread;sdl_image;mad;png;jpeg;z;m;xml2


I actually don't need anything to do with xmlNanoHTTPConnectHost or possibly the other bits and am wishing to just parse an xml file!

Any help will be greatly appreciated, thankyou.
 
Some of the references are libm, try putting xml2 earlier in the library path

CODE

xml2;SDL;pthread;sdl_image;mad;png;jpeg;z;m
 
Parkydr said:
Some of the references are libm, try putting xml2 earlier in the library path

CODE

xml2;SDL;pthread;sdl_image;mad;png;jpeg;z;m

Thankyou very much, I didn't realise the order of including libraries had an effect with GCC. Always used the M$ compiler till now. Once again, thankyou for such a quick solution :D
 
Last edited by a moderator:
Back
Top