Re: can't build quantlib with Boost 1.40

Posted by Luigi Ballabio on
URL: http://quantlib.414.s1.nabble.com/can-t-build-quantlib-with-Boost-1-40-tp8045p8052.html

On Fri, 2009-09-25 at 01:15 -0400, N Z wrote:
> 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?

You can try putting

#define BOOST_HAS_LONG_LONG

in <ql/qldefines.hpp> (which is included directly or indirectly by every
QuantLib file.)  Of course, it will work as long as you include QuantLib
headers before the Boost ones (which we enforce in QuantLib, but you'll
have to take care of your own files.)


> Also, there are still many warnings, Is there any way to get rid of
> them?

Adding

#pragma warning(disable:4819)

to qldefines.hpp will disable warning 4819.

Luigi


--

Vin: It's like this fellow I knew in El Paso. One day, he just took
all his clothes off and jumped in a mess of cactus. I asked him that
same question, "Why?"
Calvera: And?
Vin: He said, "It seemed like a good idea at the time."
-- The Magnificent Seven



------------------------------------------------------------------------------
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