I'm not sure I understand. Can you link to .a files with VS? I tried linking to the .lib file in the 64-bit release. I get only unresolved external symbol errors.
Andrew > -----Original Message----- > From: hwloc-users-boun...@open-mpi.org [mailto:hwloc-users- > boun...@open-mpi.org] On Behalf Of Samuel Thibault > Sent: Thursday, January 12, 2012 5:44 PM > To: Hardware locality user list > Subject: Re: [hwloc-users] Compiling hwloc into a static library on > Windows and Linux > > Andrew Helwer, le Fri 13 Jan 2012 01:35:27 +0100, a écrit : > > It fails with the following: > > > > *** Warning: linker path does not have real file for library -lgdi32. > > Ah, that's a dark bug in libtool. > > > gcc -I/cygdrive/c/hwloc-asdf/include -I/cygdrive/c/hwloc-asdf/include > -I/cygdriv > > e/c/hwloc-asdf/include dolib.c -o dolib > > ./dolib "/cygdrive/c/Program Files (x86)/Microsoft Visual Studio > > 10.0/VC/bin/lib " X86 .libs/libhwloc.def libhwloc- .libs/libhwloc.lib > > The system cannot find the path specified. > > "/cygdrive/c/Program Files (x86)/Microsoft Visual Studio > > 10.0/VC/bin/lib" /machi > > ne:X86 /def:.libs/libhwloc.def /name:libhwloc- > /out:.libs/libhwloc.lib > > failed > > Makefile:758: recipe for target `.libs/libhwloc.lib' failed > > Well, AIUI, you don't actually need the shared version, so you can as > well pass --disable-shared to ./configure to just get rid of this bug. > > That said, isn't the just-uploaded-to-hwloc-website win64 build enough > for you? It contains the libhwloc.a static build in lib/ > > Samuel > _______________________________________________ > hwloc-users mailing list > hwloc-us...@open-mpi.org > http://www.open-mpi.org/mailman/listinfo.cgi/hwloc-users