X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f Message-ID: <46470291.8000509@schluessler.org> Date: Sun, 13 May 2007 14:20:33 +0200 From: =?ISO-8859-1?Q?Timo_Schl=FC=DFler?= User-Agent: Thunderbird 1.5.0.7 (X11/20061202) MIME-Version: 1.0 To: djgpp AT delorie DOT com Subject: Using libxml2 with gcc Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-RZG-AUTH: lrVxSROSz8bd/08MH76VyqIxu4p9LgPLNDGEyLDcC+eGuhga3Dy2UTeqREeGyj/EOKqqvpE= X-RZG-CLASS-ID: mo07 Reply-To: djgpp AT delorie DOT com 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 ". (reagardless of if I specify the lib or not) 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. When I link to the _a file, I got millions of errors about mutliple definitions. Any suggestions how to compile my programm? Greets, Timo