Subject: Re: [Boost-bugs] [Boost C++ Libraries] #8485: Compile error, same as #5431, but Windows Vista (64 bit)
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-04-25 06:02:39
#8485: Compile error, same as #5431, but Windows Vista (64 bit)
--------------------------------------------------+-------------------------
Reporter: Martin.problemboost.Maurer@⦠| Owner: viboes
Type: Bugs | Status: assigned
Milestone: To Be Determined | Component: thread
Version: Boost 1.53.0 | Severity: Problem
Resolution: | Keywords:
--------------------------------------------------+-------------------------
Comment (by Martin.problemboost.Maurer@â¦):
Here the needed file to reproduce the error:
testmain.cpp
#include <intrin.h>
#include <boost/lexical_cast.hpp>
#include <boost/program_options.hpp>
int main(int argc, char** argv)
{
printf("Hello\n");
}
I am compiling with VS2008 and 64 Bit C compiler with the following
command line:
cl /openmp /favor:INTEL64 /O2 /Fetest.exe /F2097152 /TP /EHsc -I.
-Id:\boost_1_53_0 testmain.cpp /link /LIBPATH:d:\boost_1_53_0\lib\x64\lib
This produces the following errors:
Microsoft (R) C/C++ Optimizing Compiler Version 15.00.21022.08 for x64
Copyright (C) Microsoft Corporation. All rights reserved.
testmain.cpp
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\INCLUDE\memory(996)
: error C2733: second C linkage of overloaded funct
ion '_InterlockedCompareExchange_np' not allowed
C:\Program Files (x86)\Microsoft Visual Studio
9.0\VC\INCLUDE\memory(995) : see declaration of '_InterlockedCompareEx
change_np'
d:\boost_1_53_0\boost/detail/interlocked.hpp(104) : error C2733: second C
linkage of overloaded function '_InterlockedCompare
ExchangePointer_np' not allowed
d:\boost_1_53_0\boost/detail/interlocked.hpp(104) : see
declaration of '_InterlockedCompareExchangePointer_np'
When i remove the include for intrin.h
it compiles and runs without problems.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/8485#comment:2> 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:12 UTC