Modify

Ticket #11365 (closed Bugs: fixed)

Opened 22 months ago

Last modified 14 months ago

execution_context.hpp gives errors when building with VS2015RC

Reported by: robvdnieuwenhof@… Owned by: viboes
Milestone: To Be Determined Component: context
Version: Boost 1.58.0 Severity: Problem
Keywords: Cc:

Description (last modified by viboes) (diff)

When building boost 1_58 wirh VS2015RC it gives the following errors:

Unknown compiler version - please run the configure tests and report the results
boost/context/execution_context.hpp(140): error C2492: 'boost::context::execution_context::main_ctx_': data with thread storage duration may not have dll interface
boost/context/execution_context.hpp(140): warning C4251: 'boost::context::execution_context::main_ctx_': struct 'boost::context::execution_context::fcontext' needs to have dll-interface to be used by clients of class 'boost::context::execution_context'
boost/context/execution_context.hpp(59): note: see declaration of 'boost::context::execution_context::fcontext'
boost/context/execution_context.hpp(140): error C2492: 'private: static boost::context::execution_context::fcontext boost::context::execution_context::main_ctx_': data with thread storage duration may not have dll interface
boost/context/execution_context.hpp(141): error C2492: 'boost::context::execution_context::current_ctx_': data with thread storage duration may not have dll interface
boost/context/execution_context.hpp(141): warning C4251: 'boost::context::execution_context::current_ctx_': class 'boost::intrusive_ptr<boost::context::execution_context::fcontext>' needs to have dll-interface to be used by clients of class 'boost::context::execution_context'
boost/context/execution_context.hpp(141): error C2492: 'private: static boost::intrusive_ptr<boost::context::execution_context::fcontext> boost::context::execution_context::current_ctx_': data with thread storage duration may not have dll interface
boost/context/execution_context.hpp(143): warning C4251: 'boost::context::execution_context::ptr_': class 'boost::intrusive_ptr<boost::context::execution_context::fcontext>' needs to have dll-interface to be used by clients of class 'boost::context::execution_context'

Attachments

Change History

comment:1 Changed 22 months ago by viboes

  • Description modified (diff)

comment:2 Changed 22 months ago by viboes

  • Owner changed from anthonyw to johnmaddock
  • Component changed from thread to config
Unknown compiler version - please run the configure tests and report the results

This is the message Boost.Config shows as error when the compiler version is not supported.

I don't know if this is a version to support. Anyway, moving the ticket to Boost.Config

comment:3 Changed 22 months ago by johnmaddock

  • Owner changed from johnmaddock to viboes
  • Component changed from config to thread

Sorry to ping this back to you - but the Config message is exactly that - an informative message to say you're using a version of Boost released before the compiler you're using. In point of fact we do have some VC2015 support in 1.58, but it might not be up to date with the latest VC RC (which does have a few new features I believe).

The first *error* is definitely a Boost.Thread issue.

comment:4 Changed 22 months ago by johnmaddock

Forgot to say - we don't officially support pre-release compilers.

comment:5 Changed 22 months ago by viboes

  • Component changed from thread to context

The errors are from Boost.Context :)

moving the ticket to Boost.Context in case there is something to fix there.

comment:6 Changed 20 months ago by anonymous

then how to solve the problem?

comment:7 Changed 20 months ago by lcarreon@…

FYI, this same error message is now happening with VS 2015 RTM. I hope this is being fixed in Boost 1.59.0.

comment:8 Changed 20 months ago by johnmaddock

It appears to build fine in the master branch, so I believe this should be fixed in the next release (I haven't checked the release candidate though).

comment:9 Changed 14 months ago by olli

  • Status changed from new to closed
  • Resolution set to fixed

seams to be fixed - so closed

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.