problem to compile template with borland C++ 5.6

Posted by Xavier.Abulker on
URL: http://quantlib.414.s1.nabble.com/problem-to-compile-template-with-borland-C-5-6-tp2174.html

Hello
 I have a problem to compile Quantlib templates with Borland Builder 6.
My example is the simple following:

       Calendar calendar = TARGET();
        QuantLib::Currency currency = EUR;
        int settlementDays = 2;

        /*********************
         ***  MARKET DATA  ***
         *********************/

        QuantLib::Date todaysDate(19, October, 2001);
        double d2dquote=Edit1->Text.ToDouble();
        QuantLib::DayCounter depositDayCounter = Actual360();
        double d1yQuote=0.03;

then this call:

Handle<RateHelper> d1y(new DepositRateHelper(
            d1yQuote, 2,
            1, Years, calendar, ModifiedFollowing, depositDayCounter));

gives me the error:

[C++ Error] Unit1.cpp(51): E2108 Improper use of typedef 'RateHelper'

this call

QuantLib::Handle<RateHelper> d1y(new DepositRateHelper(
            d1yQuote, 2,
            1, Years, calendar, ModifiedFollowing, depositDayCounter));


It compiles well but when I launch it there is a crash with an error:
 "raised exception class EAccess Violation"

Thanks in advance for your help.
Xavier


*************************************************************************
Ce message et toutes les pieces jointes (ci-apres le "message") sont
confidentiels et etablis a l'intention exclusive de ses destinataires.
Toute utilisation ou diffusion non autorisee est interdite.
Tout message electronique est susceptible d'alteration.
La FIMAT et ses filiales declinent toute responsabilite au
titre de ce message s'il a ete altere, deforme ou falsifie.
                    ********
This message and any attachments (the "message") are confidential and
intended solely for the addressees.
Any unauthorised use or dissemination is prohibited.
E-mails are susceptible to alteration.
Neither FIMAT nor any of its subsidiaries or affiliates shall
be liable for the message if altered, changed or falsified.
*************************************************************************