Boost logo

Boost :

Subject: Re: [boost] [Boost-users] cross-compilation x86_64-w64-ming32: undefined reference to `InterlockedIncrement'
From: Frédéric Bron (frederic.bron_at_[hidden])
Date: 2013-09-24 05:03:24


> Yes, MinGW-w64 defines _Interlocked* functions in terms of gcc intrinsics
> internally, in intrin.h. This header is only available in MinGW-w64 and not
> MinGW (the original project). Considering all that I prepared a patch for
> interlocked.hpp (attached, the patch is against trunk).

Just tested your patch with both i686-w64-mingw32-g++ and
x86_64-w64-mingw32-g++.
Works nicely, you can apply the patch.
Kind regards,
Frédéric


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk