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-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 >

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

2012-01-12 Thread Andrew Helwer
COMPILING HWLOC ON WINDOWS WITH MINGW/CYGWIN I've attached the output of make V=1 in make_output.txt. I included the demonstration first of it failing because it can't find the include directory, but I just fix that by copy/pasting the contents of include/ into src/. HWLOC_HAVE_WINDOWS_H is

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 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

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