Re: [xml] Building libxml2 with static iconv.lib on windows




Thanks for the reply Martin.
I was able to build libxml2. The problem is I think it gets linked with iconv.dll instead of the static 
iconv.lib. The sample program (http://xmlsoft.org/examples/index.html#testWriter.c) when built gives the 
__imp__ errors related to iconv. 
I am using visual studio 2005, libxml2-2.6.30, and iconv-1.9.2

--- On Sat, 6/20/09, Martin (gzlist) <gzlist googlemail com> wrote:

From: Martin (gzlist) <gzlist googlemail com>
Subject: Re: [xml] Building libxml2 with static iconv.lib on windows
To: "john blair" <mailtome200420032002 yahoo com>
Cc: xml gnome org
Date: Saturday, June 20, 2009, 2:22 PM
On 20/06/2009, john blair <mailtome200420032002 yahoo com>
wrote:

The __imp__ prefix means that it is still looking for
iconv.dll
Can someone tell me how to build libxml2.lib with
static iconv.lib?

I'm not a build expert, but I'd need more details about the
exact
steps you're taking to have any chance of helping. What
version of
msvc, libiconv and so on are you using? Have you tried
trunk libxml2?

I have no trouble building a 2.5MB xmllint with libiconv
1.11.1 that's
only linked against wsock32, kernel32, and msvcrt.

Martin



      



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]