Re: can't build quantlib with Boost 1.40

Posted by N Z-2 on
URL: http://quantlib.414.s1.nabble.com/can-t-build-quantlib-with-Boost-1-40-tp8045p8051.html

Hi Luigi,
     Your solution works! I've compiled QuantLib project successfully. Although it's a little bit tedious to change it for each project. Is there any place I can change it for all projects at one time? Also, there are still many warnings, Is there any way to get rid of them?

Thanks,
Neil

On Thu, Sep 24, 2009 at 9:51 AM, Luigi Ballabio <[hidden email]> wrote:
On Thu, 2009-09-24 at 00:56 -0400, N Z wrote:
>    However, I tried to comment out the template specialization in
> integer_fwd.hpp for the long_long_type, and recompile quantlib, it
> works. Of course I then lose the template specialization, but this may
> give some hints on how to get rid of the error message finally.

Apparently Boost gets in some inconsistent state. To give it a hint, try
adding BOOST_HAS_LONG_LONG to the preprocessor defines in the project
settings (from the VC++ IDE right-click on the project, Properties,
Configuration Properties, C/C++, Preprocessor, Preprocessor
Definitions.)

Luigi


--

feature, n:
A surprising property of a program. Occasionally documented.
To call a property a feature sometimes means the author did not
consider that case, and the program makes an unexpected, though
not necessarily wrong response. See BUG. "That's not a bug,
it's a feature!" A bug can be changed to a feature by
documenting it.




------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users