Subject: [Boost-bugs] [Boost C++ Libraries] #8027: thread library fails to compile with Visual Studio 2003
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-02-11 23:20:15
#8027: thread library fails to compile with Visual Studio 2003
------------------------------------------+---------------------------------
Reporter: James Perry <jperry@â¦> | Owner: anthonyw
Type: Bugs | Status: new
Milestone: To Be Determined | Component: thread
Version: Boost 1.53.0 | Severity: Problem
Keywords: |
------------------------------------------+---------------------------------
The thread library fails to build with VS2003. I've tried both
boost-1.53.0 and the trunk from SVN. Prior to this, I had successfully
compiled boost-1.49.0, so it's something that changed after that. I know
the compiler is ancient, but sadly I can't use a newer one.
I'm building it with the command:
bjam toolset=msvc-7.1 variant=release thread
An example error log:
compile-c-c++ bin.v2\libs\thread\build\msvc-7.1\release\debug-store-
database\debug-symbols-on\link-static\pch-off\threading-
multi\win32\thread.obj
thread.cpp
boost\thread\future.hpp(354) : warning C4913: user defined binary operator
',' exists but no overload could convert all operands, default built-in
binary operator ',' used
boost\thread\future.hpp(1394) : error C2951: template declarations are
only permitted at global or namespace scope
boost\thread\future.hpp(1469) : see reference to class template
instantiation 'boost::unique_future<R>' being compiled
boost\thread\future.hpp(1400) : error C2955: 'boost::unique_future' : use
of class template requires template argument list
boost\thread\future.hpp(1469) : see declaration of
'boost::unique_future'
boost\thread\future.hpp(1400) : error C2146: syntax error : missing ')'
before identifier 'a_future'
boost\thread\future.hpp(1400) : error C2146: syntax error : missing ';'
before identifier 'a_future'
boost\thread\future.hpp(1400) : error C2377:
'boost::unique_future<R>::future_ptr' : redefinition; typedef cannot be
overloaded with any other symbol
boost\thread\future.hpp(1375) : see declaration of
'boost::unique_future<R>::future_ptr'
boost\thread\future.hpp(1400) : error C2059: syntax error : ')'
boost\thread\future.hpp(1401) : error C2065: 'a_future' : undeclared
identifier
boost\thread\future.hpp(1402) : fatal error C1903: unable to recover from
previous error(s); stopping compilation
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/8027> 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