Boost logo

Boost :

Subject: Re: [boost] [Boost-users] cross-compilation x86_64-w64-ming32: undefined reference to `InterlockedIncrement'
From: Andrey Semashev (andrey.semashev_at_[hidden])
Date: 2013-09-24 08:51:33


On Tue, Sep 24, 2013 at 1:03 PM, Frédéric Bron <frederic.bron_at_[hidden]>wrote:

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

Committed to trunk. I will merge the change to release as soon as the tests
pass.

Thank you for reporting the issue and trying out the patch.


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