From: Mandibull <man...@gm...> - 2009-04-22 00:10:45
|
On Wed, Apr 22, 2009 at 12:50 AM, Ian Puleston <ia...@un...>wrote: > > -----Original Message----- > > From: Earnie Boyd > > Sent: Tuesday, April 21, 2009 5:50 AM > > It is possible actually - I have an app that I compile under mingw and that > uses libxml2 which only comes pre-compiled as libxml2.lib. As I remember, > it > used to be a big problem but the latest version of the linker allows .lib > files to be linked in simply by specifying them as additional input files > explicitly (note not using the -l option). My Makefile contains: > > ifeq ($(OSTYPE),msys) > LDFLAGS += /c/MinGW/lib/libxml2.lib > else > LDFLAGS += -lxml2 > endif > > > Awesome. That's exactly what I was looking for. What version of mingw are you using? I hope that this is working with the release candidate because grabbing all the unstable packages one by one is a hassle. I'll have a closer look at the libxml2 sources to find out the MSVC flags that they're using (at first glance flags seem to be quite normal). Thanks a lot Earnie! -- Mickaël Mounier |