Posted by
Don Stewart-3 on
May 04, 2011; 12:37pm
URL: http://quantlib.414.s1.nabble.com/basic-filesystem-error-is-not-a-member-of-boost-filesystem-error-and-BOOST-FILESYSTEM-VERSION-macro-g-tp13502.html
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