Subject: [Boost-bugs] [Boost C++ Libraries] #4075: undefined reference to `_imp__InterlockedExchange' when compiling interprocess example
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-04-07 17:43:31
#4075: undefined reference to `_imp__InterlockedExchange' when compiling
interprocess example
-----------------------------------+----------------------------------------
Reporter: michael.kane@⦠| Owner: igaztanaga
Type: Bugs | Status: new
Milestone: Boost 1.43.0 | Component: interprocess
Version: Boost 1.42.0 | Severity: Problem
Keywords: |
-----------------------------------+----------------------------------------
When compiling the "doc_named_mutex.cpp" example in boost interprocess
(version 1.42.0) with mingw64 version 1.0 build 20100322 on Windows 7
Enterprise, I get the following linker error:
{{{
C:\Users\jay\Desktop\boost_1_42_0\libs\interprocess\example>
x86_64-w64-mingw32-g++ doc_named_mutex.cpp
C:\Users\jay\AppData\Local\Temp\ccb0rZaR.o:doc_named_mutex.cpp:(.text$_ZN5boost12interprocess6winapi28interlocked_compare_exchangeEPV111[boost::interprocess::winapi::interlocked_compare_exchange(long
volatile*, long, long)]+0x25: undefined reference to
`_imp__InterlockedCompareExchange'
C:\Users\jay\AppData\Local\Temp\ccb0rZaR.o:doc_named_mutex.cpp:(.text$_ZN5boost12interprocess6winapi28interlocked_compare_exchangeEPV111[boost::interprocess::winapi::interlocked_compare_exchange(long
volatile*, long, long)]+0x25: undefined reference to
`_imp__InterlockedCompareExchange'
collect2: ld returned 1 exit status
}}}
Please note: it is not clear to me if this is a boost interprocess issue
or a MinGW64 issue. If it is the latter and I can get a description of
the problem, I'm happy to report the bug to the MinGW64 project.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/4075> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:02 UTC