Hartmut Kaiser, le Fri 20 Jan 2012 00:43:32 +0100, a écrit :
> > Hartmut Kaiser, le Thu 19 Jan 2012 22:48:50 +0100, a écrit :
> > > We are using hwloc with VS2010 and were happy to realize that after
> > > the (for
> > > us) totally broken Windows binary distribution in V1.3
> >
> > Broken? How so? It worked for me.
>
> Try it, the autoconf/config.h has settings not compatible with VC++, for
> instance:
>
> /* Maybe before gcc 2.95 too */
> #if !defined(HWLOC_HAVE_ATTRIBUTE_UNUSED) && defined(__GNUC__)
> # define HWLOC_HAVE_ATTRIBUTE_UNUSED 1
> #else
> # define HWLOC_HAVE_ATTRIBUTE_UNUSED 1
> #endif
> #if HWLOC_HAVE_ATTRIBUTE_UNUSED
> # define __hwloc_attribute_unused __attribute__((__unused__))
> #else
> # define __hwloc_attribute_unused
> #endif
>
> etc. This essentially always defines __hwloc_attribute_unused to expand to
> the __attribute__() (from hwloc-win64-build-1.3.1.zip).
Ok, so the problem is not actually in the binaries, but the headers :)
This was also reported in another case and already fixed for the next
1.3 release.
Samuel
|