Login  Register

Could you define BOOST_FILESYSTEM_VERSION for basic_filesystem_error backward compatibility?

Posted by Piter Dias-4 on Apr 24, 2011; 10:05pm
URL: http://quantlib.414.s1.nabble.com/Could-you-define-BOOST-FILESYSTEM-VERSION-for-basic-filesystem-error-backward-compatibility-tp13457.html

Guys,

I had to setup my development environment from scratch (hd formatting) and got an error that says basic_filesystem_error is not member of boost::filesystem while compiling QuantLibXL. I believe the problem was on "ohxllib".

This is due to a new default option of Boost 1.46 and upwards. It uses Filesystem library version 3 by default while QuantLib is compatible with version 2.

The issue is easily solved by the code below

#define BOOST_FILESYSTEM_VERSION 2

as explained in http://www.boost.org/doc/libs/1_46_1/libs/filesystem/v3/doc/index.htm.

Perhaps you guys want to add this piece of code somewhere in order to control QuantLib/Boost compatibility.

 

Regards,

 

-- 


Piter Dias
[hidden email]
http://www.piterdias.com

------------------------------------------------------------------------------
Fulfilling the Lean Software Promise
Lean software platforms are now widely adopted and the benefits have been
demonstrated beyond question. Learn why your peers are replacing JEE
containers with lightweight application servers - and what you can gain
from the move. http://p.sf.net/sfu/vmware-sfemails
_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev