Boost 1.31.00 in recent versions of QL

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

Boost 1.31.00 in recent versions of QL

delia.silvino

Hi all,

I'm having problems compiling QL 0.4.0 with boost 1.31.00:
a more recent version of boost seems to be needed,
differently from what specified at
http://quantlib.org/download.shtml


When trying to compile with VC 7.1 I get the following error:
c:\...\QuantLib-0.4.0\ql\date.cpp(27): fatal error C1083: Cannot open include file: 'boost/algorithm/string/case_conv.hpp': No such file or directory
indeed, such file exists only in later versions of boost

In QL 0.4.0 this seems to be the only reference to boost versions >1.31:
I avoided the error modifying the QL files in which such file is included, namely
C:\...\QuantLib-0.4.0\ql\Indexes\indexmanager.cpp
C:\...\QuantLib-0.4.0\ql\Utilities\dataparsers.cpp
C:\...\QuantLib-0.4.0\ql\Utilities\strings.hpp
C:\...\QuantLib-0.4.0\ql\date.cpp

This is not a very good solution: it works, for now, but doesn't allow to keep abreast of Ql updates.
Later versions of QL feature further references to boost >1.31, and arrange a patch it's not so easy.

Moreover, boost 1.31.00 doesn't allow for VC 8.0:
the following error occurs when trying to compile QL 0.4.0 with boost 1.31.00 using VC 8.0
"Unknown compiler version - please run the configure tests and report the results"

I tried with boost 1.32.00 and everything is ok with VC 7.1,
but I am forced to use boost 1.31.00 for compatibility with other libs.
Is there something I can do to update QL without changing boost version?

Thanks,
Delia

----------------------------------------------------------------------------------------------------------------------------
La presente comunicazione e' destinata esclusivamente al soggetto indicato piu' sopra quale destinatario o ad eventuali altri soggetti autorizzati a riceverla. Essa contiene informazioni strettamente confidenziali e riservate, la cui comunicazione o diffusione a terzi e' proibita, salvo che non sia stata espressamente autorizzata.
Se avete ricevuto questa comunicazione per errore, Vi preghiamo di darne immediata comunicazione al mittente e di cancellarne ogni evidenza dai Vostri supporti.
----------------------------------------------------------------------------------------------------------------------------------------

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Re: Boost 1.31.00 in recent versions of QL

Luigi Ballabio
On Mon, 2008-01-07 at 09:00 +0100, [hidden email] wrote:
> I'm having problems compiling QL 0.4.0 with boost 1.31.00:

> When trying to compile with VC 7.1 I get the following error:
> c:\...\QuantLib-0.4.0\ql\date.cpp(27): fatal error C1083: Cannot open
> include file: 'boost/algorithm/string/case_conv.hpp': No such file or
> directory
> indeed, such file exists only in later versions of boost

Hmm. This seems to have been an oversight on our part. The file is
included to use boost::algorithm::to_lower_copy and to_upper_copy.
Do the functions exist in Boost 1.31? And if so, in what files?


> Moreover, boost 1.31.00 doesn't allow for VC 8.0:
> the following error occurs when trying to compile QL 0.4.0 with boost
> 1.31.00 using VC 8.0
> "Unknown compiler version - please run the configure tests and report
> the results"

Yes, I think VC 8.0 was not yet released when Boost 1.31 came out. You
might try patching the Boost bjam files---you'll have to ask on the
Boost mailing list about this.

Later,
        Luigi


--

Grabel's Law:
2 is not equal to 3 -- not even for large values of 2.



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users