Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

mingw/libxml2 issue

Tags:

mingw

libxml2

I'm trying to use libxml2 (v2.2.6.0) with mingw under win7 I added the lib -llibmlx2, but each time I compile I get :

error: undefined reference to `_imp__xmlFree'

On Google I found this: http://osdir.com/ml/gnome.lib.xml.ge.../msg00003.html
But still doesn't work.

Any idea ?

thanks...

like image 549
Stef Avatar asked Dec 22 '22 17:12

Stef


1 Answers

This can be fixed by using the "--disable-shared" flag to configure, e.g.:

./configure --prefix=/mingw --disable-shared

like image 78
SubJunk Avatar answered Dec 28 '22 08:12

SubJunk