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-23 06:34:37


On Mon, Sep 23, 2013 at 2:13 PM, Frédéric Bron <frederic.bron_at_[hidden]>wrote:

> So I eventually managed to fix the issue with interlocked.hpp and
> mingw-w64: both i686 and x86_64 now work.
> Attached is a patch against 1.54.0.
> Is it possible to include this in 1.55.0?
>

I probably missed the original problem, but the patch doesn't look correct
to me. The section guarded with "defined( BOOST_MSVC ) || defined(
BOOST_INTEL_WIN )" is obviously targeted for compilers supporting
interlocked intrinsics, which gcc isn't. MinGW should probably be handled
by the last section of the #if/elif/endif sequence. Anyway, what problem
are you trying to fix?


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