Boost logo

Boost Users :

Subject: [Boost-users] Problem building boost\optional\optional.hpp in VS2010
From: Pally Sandher (pally.sandher_at_[hidden])
Date: 2011-08-03 11:12:23


Hi,

We've been using boost v1.36 in Visual Studio 2005 for a few years now. I'm attempting to upgrade our projects & solutions to build in Visual Studio 2010 & thus I've upgraded to boost 1.47.0. However I'm getting an error when trying to compile a project which uses some boost functions

Full text of the error message is as follows:

1> ASIMNET.CPP
1>c:\code\inc\boost\optional\optional.hpp(346): error C2061: syntax error : identifier 'm_storage'
1> c:\code\inc\boost\optional\optional.hpp(345) : while compiling class template member function 'void boost::optional_detail::optional_base<T>::construct(const std::locale &)'
1> with
1> [
1> T=boost::io::detail::locale_t
1> ]
1> c:\code\inc\boost\optional\optional.hpp(500) : see reference to class template instantiation 'boost::optional_detail::optional_base<T>' being compiled
1> with
1> [
1> T=boost::io::detail::locale_t
1> ]
1> c:\code\inc\boost\format\internals.hpp(56) : see reference to class template instantiation 'boost::optional<T>' being compiled
1> with
1> [
1> T=boost::io::detail::locale_t
1> ]
1> c:\code\inc\boost\format\internals.hpp(57) : see reference to class template instantiation 'boost::io::detail::stream_format_state<Ch,Tr>' being compiled
1>
1>Build FAILED.
1>

The only references to boost in ASIMNET.CPP are as follows:

#include <boost/math/special_functions/round.hpp>

  translation[X] = boost::math::round( (translation[X]/TILEWIDTH) ) * TILEWIDTH;
  translation[Y] = boost::math::round( (translation[Y]/TILEWIDTH) ) * TILEWIDTH;

Any help will be most appreciated.

Thanks,

Palbinder Sandher
Software Deployment Engineer
T: +44 (0) 141 945 8500
F: +44 (0) 141 945 8501

http://www.iesve.com
**Design, Simulate + Innovate with the <Virtual Environment>**
Integrated Environmental Solutions Limited. Registered in Scotland No. SC151456
Registered Office - Helix Building, West Of Scotland Science Park, Glasgow G20 0SP
Email Disclaimer


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net