X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: Cesar Rabak Newsgroups: comp.os.msdos.djgpp Subject: Re: Using libxml2 with gcc Date: Sun, 13 May 2007 11:14:31 -0300 Organization: Aioe.org NNTP Server Lines: 29 Message-ID: References: <46470291 DOT 8000509 AT schluessler DOT org> NNTP-Posting-Host: LMLnELbTmZpUdPJQYztLAA.user.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Complaints-To: abuse AT aioe DOT org In-Reply-To: User-Agent: Thunderbird 1.5.0.8 (X11/20061109) To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Timo Schlüßler escreveu: > Hi you, > > I'm trying to compile a programm that uses libxml2 (http://xmlsoft.org/ > -> windows binaries) with DJGPP. I tried to do this in several ways, but > everytime I get the same errors: "undefined reference to functions>". (reagardless of if I specify the lib or not) Do the 'several ways' included to build a DJGPP library from the sources first? > I tried linking with -Lxml2 after renaming the library to libxml2.a and > with linking through specifying the full path of the lib. > > In the libxml2 packet for windows, there are two lib-files: libxml2.lib > and libxml2_a.lib (the second is much larger) and there is a > libxml2.dll. I've read that i have to use the dll when i link to the > smaller lib file. The windows package is of no use for DJGPP. > > When I link to the _a file, I got millions of errors about mutliple > definitions. > > Any suggestions how to compile my programm? > IIUC you need first to build libraries for DJGPP.