Re: [hwloc-users] Compiling hwloc into a static library on Windows and Linux

2012-01-13 Thread Samuel Thibault
Andrew Helwer, le Fri 13 Jan 2012 18:16:16 +0100, a écrit : > libhwloc.lib(traversal.o) : error LNK2019: unresolved external symbol > __ms_vsnpr > intf referenced in function snprintf Do you also link msvcrt in? mingw needs it for almost everything. Samuel

Re: [hwloc-users] Compiling hwloc into a static library on Windows and Linux

2012-01-13 Thread Andrew Helwer
2 10:16 AM > 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 18:09:11 +0100, a écrit : > > > You can perhaps try to rename it into a .lib file and give that to > VS

Re: [hwloc-users] Compiling hwloc into a static library on Windows and Linux

2012-01-13 Thread Samuel Thibault
Andrew Helwer, le Fri 13 Jan 2012 18:09:11 +0100, a écrit : > > You can perhaps try to rename it into a .lib file and give that to VS. > > Didn't work. What errors do you get? Samuel

Re: [hwloc-users] Compiling hwloc into a static library on Windows and Linux

2012-01-13 Thread Andrew Helwer
om: hwloc-users-boun...@open-mpi.org [mailto:hwloc-users- > boun...@open-mpi.org] On Behalf Of Samuel Thibault > Sent: Thursday, January 12, 2012 6:05 PM > To: Hardware locality user list > Subject: Re: [hwloc-users] Compiling hwloc into a static library on > Windows and Linux > &g

Re: [hwloc-users] Compiling hwloc into a static library on Windows and Linux

2012-01-12 Thread Samuel Thibault
Samuel Thibault, le Fri 13 Jan 2012 02:01:12 +0100, a écrit : > Andrew Helwer, le Fri 13 Jan 2012 01:51:15 +0100, a écrit : > > I'm not sure I understand. Can you link to .a files with VS? > > I don't know, but what's sure is that .a files are static libraries in > mingw. You can perhaps try to r

Re: [hwloc-users] Compiling hwloc into a static library on Windows and Linux

2012-01-12 Thread Samuel Thibault
Andrew Helwer, le Fri 13 Jan 2012 01:51:15 +0100, a écrit : > I'm not sure I understand. Can you link to .a files with VS? I don't know, but what's sure is that .a files are static libraries in mingw. > I tried linking to the .lib file in the 64-bit release. I get only unresolved > external symb

Re: [hwloc-users] Compiling hwloc into a static library on Windows and Linux

2012-01-12 Thread Andrew Helwer
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 :

Re: [hwloc-users] Compiling hwloc into a static library on Windows and Linux

2012-01-12 Thread Samuel Thibault
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

Re: [hwloc-users] Compiling hwloc into a static library on Windows and Linux

2012-01-12 Thread Andrew Helwer
oc-users- > boun...@open-mpi.org] On Behalf Of Samuel Thibault > Sent: Thursday, January 12, 2012 4:38 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 00:11:45 +010

Re: [hwloc-users] Compiling hwloc into a static library on Windows and Linux

2012-01-12 Thread Samuel Thibault
Andrew Helwer, le Fri 13 Jan 2012 00:11:45 +0100, a écrit : > > In mingw terms, .lib is meant for dynamic linking, not static linking. > > the .a file is meant for static linking. > > How can I get it to create a static windows lib? Passing --enable-static to ./configure should do it. Samuel

Re: [hwloc-users] Compiling hwloc into a static library on Windows and Linux

2012-01-12 Thread Andrew Helwer
pen-mpi.org] On Behalf Of Samuel Thibault > Sent: Thursday, January 12, 2012 3:36 PM > To: Hardware locality user list > Subject: Re: [hwloc-users] Compiling hwloc into a static library on > Windows and Linux > > Andrew Helwer, le Thu 12 Jan 2012 22:52:26 +0100, a écrit : > > C

Re: [hwloc-users] Compiling hwloc into a static library on Windows and Linux

2012-01-12 Thread Samuel Thibault
Andrew Helwer, le Thu 12 Jan 2012 22:52:26 +0100, a écrit : > C:\hwloc-1.3.1\src>dolib.exe lib.exe X86 .libs/libhwloc.def libhwloc- > .libs/libhwloc.lib > > This creates a .lib file, but when I use the VS compiler to compile and link > against it, it asks for a dll at runtime. In mingw terms, .

Re: [hwloc-users] Compiling hwloc into a static library on Windows and Linux

2012-01-12 Thread Andrew Helwer
rdware locality user list > Subject: Re: [hwloc-users] Compiling hwloc into a static library on > Windows and Linux > > Hello, > > Andrew Helwer, le Thu 12 Jan 2012 02:11:58 +0100, a écrit : > > If I run the command manually, it can't find the libhwloc.def file. > Whic

Re: [hwloc-users] Compiling hwloc into a static library on Windows and Linux

2012-01-12 Thread Samuel Thibault
Andrew Helwer, le Tue 10 Jan 2012 02:08:46 +0100, a écrit : > the Visual Studio compiler runs into a lot of issues. What kind of issues for instance? Samuel

Re: [hwloc-users] Compiling hwloc into a static library on Windows and Linux

2012-01-12 Thread Samuel Thibault
Hello, Andrew Helwer, le Tue 10 Jan 2012 02:08:46 +0100, a écrit : > First of all, is Windows 64-bit supported? There is only a 32-bit release on > the downloads page. I have tried mingw-w64, and it does seem to work, I have added a 64-bit release on the download page (pending mirror push). Samu

Re: [hwloc-users] Compiling hwloc into a static library on Windows and Linux

2012-01-12 Thread Samuel Thibault
Hello, Andrew Helwer, le Thu 12 Jan 2012 02:11:58 +0100, a écrit : > If I run the command manually, it can't find the libhwloc.def file. Which is > reasonable, as it does not appear to exist in the .lib directory. Am I > missing something? In principle the .def file is generated by the linker.

Re: [hwloc-users] Compiling hwloc into a static library on Windows and Linux

2012-01-11 Thread Andrew Helwer
> To be clear: I think you're misunderstanding what --enable-embedded- > mode is for. Per Samuel's comment, I think you want --enable-static > (and possibly --disable-shared). Ah yes, I was misunderstanding the purpose of --enable-embedded-mode. I understand now, and also use the --enable-static

Re: [hwloc-users] Compiling hwloc into a static library on Windows and Linux

2012-01-09 Thread Jeff Squyres
On Jan 9, 2012, at 5:25 PM, Samuel Thibault wrote: >> However, when I specify the --enable-embedded-mode flag in configure in >> Linux, >> no libraries are built at all - the specified prefix directory contains only >> empty directories. > > But the library is built, it's just not installed beca

Re: [hwloc-users] Compiling hwloc into a static library on Windows and Linux

2012-01-09 Thread Samuel Thibault
Andrew Helwer, le Tue 10 Jan 2012 02:08:46 +0100, a écrit : > First of all, is Windows 64-bit supported? There is only a 32-bit release on > the downloads page. I have never tried to build a 64bit binary, but there is little reason it should fail. > However, when I specify the --enable-embedded-m

[hwloc-users] Compiling hwloc into a static library on Windows and Linux

2012-01-09 Thread Andrew Helwer
Hello, I am attempting to compile hwloc into a static library so that it may be integrated into a larger project without having to ship the shared library with the release. The project is cross-platform, and so needs to support Windows 32/64-bit and Linux. First of all, is Windows 64-bit supp