'basic_filesystem_error' : is not a member of 'boost::filesystem' error and 'BOOST_FILESYSTEM_VERSION' : macro redefinition warning

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

'basic_filesystem_error' : is not a member of 'boost::filesystem' error and 'BOOST_FILESYSTEM_VERSION' : macro redefinition warning

Don Stewart-3
Hi Luigi,
I encountered the following error when building QuantLibXL_full_vc10.sln
from the QuantLib 1.1 release candidates ( downloaded from
https://sourceforge.net/projects/quantlib/files/prerelease/) under
Visual C++ 2010/boost 1.46.1.
 
 
warning C4005: 'BOOST_FILESYSTEM_VERSION' : macro redefinition
3>          d:\clib\include\boost_1_46_1\boost\filesystem.hpp(24) : see
previous definition of 'BOOST_FILESYSTEM_VERSION'
3>d:\clib\build\quantlib-1.1.0\objecthandler\oh\serializationfactory.cpp
(198): error C2039: 'basic_filesystem_error' : is not a member of
'boost::filesystem'
3>d:\clib\build\quantlib-1.1.0\objecthandler\oh\serializationfactory.cpp
(198): error C4430: missing type specifier - int assumed. Note: C++ does
not support default-int
3>d:\clib\build\quantlib-1.1.0\objecthandler\oh\serializationfactory.cpp
(198): error C2143: syntax error : missing ',' before '<'
3>d:\clib\build\quantlib-1.1.0\objecthandler\oh\serializationfactory.cpp
(277): error C2784: 'bool boost::regex_match(const
std::basic_string<charT,ST,SA> &,const boost::basic_regex<charT,traits>
&,boost::regex_constants::match_flag_type)' : could not deduce template
argument for 'const std::basic_string<charT,ST,SA> &' from
'boost::filesystem3::path'
3>
d:\clib\include\boost_1_46_1\boost\regex\v4\regex_match.hpp(94) : see
declaration of 'boost::regex_match'
...
 
I was able to resolve this error by moving the line
 
#define BOOST_FILESYSTEM_VERSION 2
 
in ObjectHandler\oh\serializationfactory.cpp above #include
<boost/filesystem.hpp> as described in
http://www.boost.org/doc/libs/1_46_1/libs/filesystem/v3/doc/index.htm
 
 
Regards Don Stewart
Quantitative Modelling Team
Financial Services Authority
25 The North Colonnade | Canary Wharf | London | E14 5HS
Tel: 020 7066 4778 | Mobile: 07855 482 466
Email: [hidden email]



This communication and any attachments contains information which is confidential and may be subject to legal privilege. It is for intended recipients only. If you are not the intended recipient you must not copy, distribute, publish, rely on or otherwise use it without our consent. Some of our communications may contain confidential information which it could be a criminal offence for you to disclose or use without authority. If you have received this email in error please notify [hidden email] immediately and delete the email from your computer.

The FSA reserves the right to monitor all email communications for compliance with legal, regulatory and professional standards.
This email is not intended to nor should it be taken to create any legal relations or contractual relationships. This email has originated from

The Financial Services Authority (FSA)
25 The North Colonnade,
Canary Wharf,
London
E14 5HS
United Kingdom

Registered as a Limited Company in England and Wales No.1920623.
Registered Office as above

Switchboard: 020 7066 1000
Web Site: http://www.fsa.gov.uk
*****************************************************************


------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network
management toolset available today.  Delivers lowest initial
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev
Reply | Threaded
Open this post in threaded view
|

Re: 'basic_filesystem_error' : is not a member of 'boost::filesystem' error and 'BOOST_FILESYSTEM_VERSION' : macro redefinition warning

Eric Ehlers-2
Hi Don,

> I was able to resolve this error by moving the line
>
> #define BOOST_FILESYSTEM_VERSION 2
>
> in ObjectHandler\oh\serializationfactory.cpp above #include
> <boost/filesystem.hpp> as described in
> http://www.boost.org/doc/libs/1_46_1/libs/filesystem/v3/doc/index.htm

I applied the fix to the subversion branch and updated the prerelease  
tarballs.  Many thanks for your feedback.

Regards,
Eric

===================================================
Eric Ehlers
nazcatech sprl | Brussels | http://www.nazcatech.be
* Distributed computing for pricing analytics
* Use Microsoft Excel as a client to the Grid


------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network
management toolset available today.  Delivers lowest initial
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev