Posted by
Xavier.Abulker on
URL: http://quantlib.414.s1.nabble.com/exception-handling-on-Unix-tp2545p2546.html
Hi Luigi,
this second example gives me the error:
"
~/QuantLib-0.3.1/Examples/EuropeanOption> make
source='EuropeanOption.cpp' object='EuropeanOption.o' libtool=no \
depfile='.deps/EuropeanOption.Po' tmpdepfile='.deps/EuropeanOption.TPo' \
depmode=gcc /bin/bash ../../config/depcomp \
g++ -DHAVE_CONFIG_H -I. -I. -I../../ql -I../.. -I../.. -c -o
EuropeanOption.o `test -f 'EuropeanOption.cpp' || echo './'
`EuropeanOption.cpp
EuropeanOption.cpp: In function `int main()':
EuropeanOption.cpp:29: parse error before `)'
EuropeanOption.cpp:32: no matching function for call to
`QuantLib::Instruments::VanillaOption::VanillaOption
(QuantLib::Option::Type,
QuantLib::RelinkableHandle<QuantLib::MarketElement> &, double,
QuantLib::RelinkableHandle<QuantLib::TermStructure> &,
QuantLib::RelinkableHandle<QuantLib::TermStructure> &,
QuantLib::EuropeanExercise,
QuantLib::RelinkableHandle<QuantLib::BlackVolTermStructure> &,
QuantLib::Handle<QuantLib::PricingEngine> (&)(...))'
../../ql/Instruments/vanillaoption.hpp:51: candidates are:
QuantLib::Instruments::VanillaOption::VanillaOption(QuantLib::Option::Type,
const QuantLib::RelinkableHandle<QuantLib::MarketElement> &, double, const
QuantLib::RelinkableHandle<QuantLib::TermStructure> &, const
QuantLib::RelinkableHandle<QuantLib::TermStructure> &, const QuantLib::Date
&, const QuantLib::RelinkableHandle<QuantLib::MarketElement> &, const
QuantLib::Handle<QuantLib::PricingEngine> &, const string & = "", const
string & = "")
../../ql/Instruments/vanillaoption.hpp:100:
QuantLib::Instruments::VanillaOption::VanillaOption(const
QuantLib::Instruments::VanillaOption &)
*** Error code 1
make: Fatal error: Command failed for target `EuropeanOption.o'
"
I'm currenlty Sad advice: use gcc -lstdc++ instead of g++
Thank you for your help
Xavier
Luigi Ballabio
<
[hidden email]> To:
[hidden email]
Sent by: cc:
[hidden email]
[hidden email] Subject: Re: [Quantlib-users] exception handling on Unix
eforge.net
21/05/2003 13:18
Xavier,
would you mind trying this file?
(See attached file: foo.cpp)
*************************************************************************
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.
*************************************************************************