Quantlib compile error

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

Quantlib compile error

Kim, Hyung Geun
Hi,
I'm a newbie in Quantlib.
And I'm using VC7 with boost 1.3.2.

When I complie Swapvaluation/BuermudanSwaption examples,
I have compile errors like

..piecewiseyieldcurve.hpp(109) : error C2065: 'C' : undefined identifier....
..piecewiseyieldcurve.hpp(109) : error C2065: 'I' : undefined identifier....
... error C2687: ....
... fatal error C1903....

How can I fix it?

----
Hyung-Geun Kim, Ph.D.
Senior Manager
Fixed Income Trading Dept
Capital Markets Business Division
Samsung Securities Co. LTD.
Phone +82-2-2020-7715
Fax      +82-2-2020-7690
 
 


Reply | Threaded
Open this post in threaded view
|

Re: Quantlib compile error

Luigi Ballabio
On 07/12/2005 12:52:50 PM, Kim, Hyung Geun wrote:
> And I'm using VC7 with boost 1.3.2.
>
> When I complie Swapvaluation/BuermudanSwaption examples,
> I have compile errors like
>
> ..piecewiseyieldcurve.hpp(109) : error C2065: 'C' : undefined
> identifier....
>
> How can I fix it?

Probably by upgrading to VC7.1 (I'm told the upgrade is free, but I  
might be wrong.)

A workaround would be to disable such class. You'll have to edit  
piecewiseyieldcurve.hpp and replace
#ifndef QL_PATCH_MSVC6
with
#if 0

Hope this helps,
        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