Hi, I am curently trying to
install quantlib on VS2008 with the 1.39.0 version but I get some errors. I am
new with C++ and quantlib so if
someone could help me to set up properly. Here is the message I get
when I tried to build the globall solution. 1>------ Build started:
Project: QuantLib, Configuration: Release Win32 ------ 1>Compiling... 1>varianceoption.cpp 1>.\ql\experimental\varianceoption\varianceoption.cpp(1)
: error C2059: syntax error : '-' 1>.\ql\experimental\varianceoption\varianceoption.cpp(1)
: error C2143: syntax error : missing ';' before '++' 1>.\ql\experimental\varianceoption\varianceoption.cpp(1)
: error C4430: missing type specifier - int assumed. Note: C++ does not support
default-int 1>.\ql\experimental\varianceoption\varianceoption.cpp(1)
: error C2143: syntax error : missing ';' before '-' 1>.\ql\experimental\varianceoption\varianceoption.cpp(1)
: error C4430: missing type specifier - int assumed. Note: C++ does not support
default-int 1>.\ql\experimental\varianceoption\varianceoption.cpp(1)
: error C2059: syntax error : 'constant' 1>.\ql\experimental\varianceoption\varianceoption.cpp(1)
: error C2143: syntax error : missing ';' before '-' 1>.\ql\experimental\varianceoption\varianceoption.cpp(1)
: error C4430: missing type specifier - int assumed. Note: C++ does not support
default-int 1>.\ql\experimental\varianceoption\varianceoption.cpp(1)
: error C4430: missing type specifier - int assumed. Note: C++ does not support
default-int 1>.\ql\experimental\varianceoption\varianceoption.cpp(1)
: error C2143: syntax error : missing ';' before '-' 1>.\ql\experimental\varianceoption\varianceoption.cpp(1)
: error C4430: missing type specifier - int assumed. Note: C++ does not support
default-int 1>.\ql\experimental\varianceoption\varianceoption.cpp(1)
: error C2086: 'int c' : redefinition 1> .\ql\experimental\varianceoption\varianceoption.cpp(1)
: see declaration of 'c' 1>.\ql\experimental\varianceoption\varianceoption.cpp(1)
: error C2059: syntax error : 'constant' 1>.\ql\experimental\varianceoption\varianceoption.cpp(1)
: warning C4138: '*/' found outside of comment 1>Build log was saved at
"file://c:\Program
Files\QuantLib\QuantLib-1.0.1\build\vc90\Win32\Release\BuildLog.htm" 1>QuantLib - 13 error(s),
1 warning(s) ========== Build: 0
succeeded, 1 failed, 14 up-to-date, 0 skipped ========== Thanks Fred ------------------------------------------------------------------------------ This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
Fred,
what version of QuantLib are you using--a released one, or a checkout from Subversion? Also, may you check that you didn't accidentaly modify the varianceoption.cpp file? The first line (from which your errors come) should read: /* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ Luigi On Mon, 2010-08-30 at 12:52 +0100, Frederic Valmorin wrote: > I am curently trying to install quantlib on VS2008 with the 1.39.0 > version but I get some errors. I am new with > > C++ and quantlib so if someone could help me to set up properly. > > > > Here is the message I get when I tried to build the globall solution. > > > > 1>------ Build started: Project: QuantLib, Configuration: Release > Win32 ------ > > 1>Compiling... > > 1>varianceoption.cpp > > 1>.\ql\experimental\varianceoption\varianceoption.cpp(1) : error > C2059: syntax error : '-' > > 1>.\ql\experimental\varianceoption\varianceoption.cpp(1) : error > C2143: syntax error : missing ';' before '++' > > 1>.\ql\experimental\varianceoption\varianceoption.cpp(1) : error > C4430: missing type specifier - int assumed. Note: C++ does not > support default-int > > 1>.\ql\experimental\varianceoption\varianceoption.cpp(1) : error > C2143: syntax error : missing ';' before '-' > > 1>.\ql\experimental\varianceoption\varianceoption.cpp(1) : error > C4430: missing type specifier - int assumed. Note: C++ does not > support default-int > > 1>.\ql\experimental\varianceoption\varianceoption.cpp(1) : error > C2059: syntax error : 'constant' > > 1>.\ql\experimental\varianceoption\varianceoption.cpp(1) : error > C2143: syntax error : missing ';' before '-' > > 1>.\ql\experimental\varianceoption\varianceoption.cpp(1) : error > C4430: missing type specifier - int assumed. Note: C++ does not > support default-int > > 1>.\ql\experimental\varianceoption\varianceoption.cpp(1) : error > C4430: missing type specifier - int assumed. Note: C++ does not > support default-int > > 1>.\ql\experimental\varianceoption\varianceoption.cpp(1) : error > C2143: syntax error : missing ';' before '-' > > 1>.\ql\experimental\varianceoption\varianceoption.cpp(1) : error > C4430: missing type specifier - int assumed. Note: C++ does not > support default-int > > 1>.\ql\experimental\varianceoption\varianceoption.cpp(1) : error > C2086: 'int c' : redefinition > > 1> .\ql\experimental\varianceoption\varianceoption.cpp(1) : see > declaration of 'c' > > 1>.\ql\experimental\varianceoption\varianceoption.cpp(1) : error > C2059: syntax error : 'constant' > > 1>.\ql\experimental\varianceoption\varianceoption.cpp(1) : warning > C4138: '*/' found outside of comment > > 1>Build log was saved at "file://c:\Program Files\QuantLib > \QuantLib-1.0.1\build\vc90\Win32\Release\BuildLog.htm" > > 1>QuantLib - 13 error(s), 1 warning(s) > > ========== Build: 0 succeeded, 1 failed, 14 up-to-date, 0 skipped > ========== > > > > > > Thanks > > Fred > > > ------------------------------------------------------------------------------ > This SF.net Dev2Dev email is sponsored by: > > Show off your parallel programming skills. > Enter the Intel(R) Threading Challenge 2010. > http://p.sf.net/sfu/intel-thread-sfd > _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users -- There is no opinion so absurd that some philosopher will not express it. -- Marcus Tullius Cicero, "Ad familiares" ------------------------------------------------------------------------------ This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
Hi Luigi,
I am using the QuantLib v.1.0.1 with 1.39 boost lib. I made some test about Boost install as mentioned http://quantlib.org/install/vc9.shtml and it worked properly. How could I check that varianceoption.cpp file is modified? Thanks Fred -----Original Message----- From: Luigi Ballabio [mailto:[hidden email]] Sent: 31 August 2010 10:31 To: Frederic Valmorin Cc: [hidden email] Subject: Re: [Quantlib-users] Errors building QuantLib on VS2008 + BOOST 1.39.0 Fred, what version of QuantLib are you using--a released one, or a checkout from Subversion? Also, may you check that you didn't accidentaly modify the varianceoption.cpp file? The first line (from which your errors come) should read: /* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ Luigi On Mon, 2010-08-30 at 12:52 +0100, Frederic Valmorin wrote: > I am curently trying to install quantlib on VS2008 with the 1.39.0 > version but I get some errors. I am new with > > C++ and quantlib so if someone could help me to set up properly. > > > > Here is the message I get when I tried to build the globall solution. > > > > 1>------ Build started: Project: QuantLib, Configuration: Release > Win32 ------ > > 1>Compiling... > > 1>varianceoption.cpp > > 1>.\ql\experimental\varianceoption\varianceoption.cpp(1) : error > C2059: syntax error : '-' > > 1>.\ql\experimental\varianceoption\varianceoption.cpp(1) : error > C2143: syntax error : missing ';' before '++' > > 1>.\ql\experimental\varianceoption\varianceoption.cpp(1) : error > C4430: missing type specifier - int assumed. Note: C++ does not > support default-int > > 1>.\ql\experimental\varianceoption\varianceoption.cpp(1) : error > C2143: syntax error : missing ';' before '-' > > 1>.\ql\experimental\varianceoption\varianceoption.cpp(1) : error > C4430: missing type specifier - int assumed. Note: C++ does not > support default-int > > 1>.\ql\experimental\varianceoption\varianceoption.cpp(1) : error > C2059: syntax error : 'constant' > > 1>.\ql\experimental\varianceoption\varianceoption.cpp(1) : error > C2143: syntax error : missing ';' before '-' > > 1>.\ql\experimental\varianceoption\varianceoption.cpp(1) : error > C4430: missing type specifier - int assumed. Note: C++ does not > support default-int > > 1>.\ql\experimental\varianceoption\varianceoption.cpp(1) : error > C4430: missing type specifier - int assumed. Note: C++ does not > support default-int > > 1>.\ql\experimental\varianceoption\varianceoption.cpp(1) : error > C2143: syntax error : missing ';' before '-' > > 1>.\ql\experimental\varianceoption\varianceoption.cpp(1) : error > C4430: missing type specifier - int assumed. Note: C++ does not > support default-int > > 1>.\ql\experimental\varianceoption\varianceoption.cpp(1) : error > C2086: 'int c' : redefinition > > 1> .\ql\experimental\varianceoption\varianceoption.cpp(1) : see > declaration of 'c' > > 1>.\ql\experimental\varianceoption\varianceoption.cpp(1) : error > C2059: syntax error : 'constant' > > 1>.\ql\experimental\varianceoption\varianceoption.cpp(1) : warning > C4138: '*/' found outside of comment > > 1>Build log was saved at "file://c:\Program Files\QuantLib > \QuantLib-1.0.1\build\vc90\Win32\Release\BuildLog.htm" > > 1>QuantLib - 13 error(s), 1 warning(s) > > ========== Build: 0 succeeded, 1 failed, 14 up-to-date, 0 skipped > ========== > > > > > > Thanks > > Fred > > > ------------------------------------------------------------------------------ > This SF.net Dev2Dev email is sponsored by: > > Show off your parallel programming skills. > Enter the Intel(R) Threading Challenge 2010. > http://p.sf.net/sfu/intel-thread-sfd > _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users -- There is no opinion so absurd that some philosopher will not express it. -- Marcus Tullius Cicero, "Ad familiares" ------------------------------------------------------------------------------ This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users This email (including any attachments to it) is confidential, legally privileged, subject to copyright and is sent for the personal attention of the intended recipient only. If you have received this email in error, please advise us immediately and delete it. You are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. Although we have taken reasonable precautions to ensure no viruses are present in this email, we cannot accept responsibility for any loss or damage arising from the viruses in this email or attachments. We exclude any liability for the content of this email, or for the consequences of any actions taken on the basis of the information provided in this email or its attachments, unless that information is subsequently confirmed in writing. Unless otherwise stipulated herein, any opinions contained in this message are those of the author and are not given or endorsed by the company through which this message is sent. Nothing in this message or in its attachments should be construed as a solicitation or offer, or recommendation, to acquire or dispose of any investment or to engage in any other transaction. FM Capital is a limited company registered in England and Wales. Registered Number: 06952225. Registered Office: No 1 Knightsbridge, London SW1X 7LX ------------------------------------------------------------------------------ This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
On Tue, 2010-08-31 at 09:46 +0000, Frederic Valmorin wrote:
> How could I check that varianceoption.cpp file is modified? The first line (from which your errors come) should read: /* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -- The young man knows the rules, but the old man knows the exceptions. -- O. W. Holmes ------------------------------------------------------------------------------ This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
Thanks Luigi,
You were right. The varianceoption.cpp file was modified. I built the QL solution but i still get 3 errors...see the log Here is the extract of the log file Testing alpha caplet calibration in a lognormal coterminal swap market model... unknown location(0): fatal error in "QuantLib::detail::quantlib_test_case(&MarketModelSmmCapletAlphaCalibrationTest::testFunction)": std::exception: last caplet vol (0.1340376439125532) must be equal to last swaption vol (0.1340517152226495); discrepancy is 1.407131009625862e-005 c:\program files\quantlib\quantlib-1.0.1\test-suite\utilities.hpp(78): last checkpoint Testing GHLS caplet calibration in a lognormal coterminal swap market model... unknown location(0): fatal error in "QuantLib::detail::quantlib_test_case(&MarketModelSmmCapletCalibrationTest::testFunction)": std::exception: last caplet vol (0.1340376439125532) must be equal to last swaption vol (0.1340517152226495); discrepancy is 1.407131009625862e-005 c:\program files\quantlib\quantlib-1.0.1\test-suite\utilities.hpp(78): last checkpoint Testing max homogeneity caplet calibration in a lognormal coterminal swap market model... unknown location(0): fatal error in "QuantLib::detail::quantlib_test_case(&MarketModelSmmCapletHomoCalibrationTest::testFunction)": std::exception: last caplet vol (0.1340376439125532) must be equal to last swaption vol (0.1340517152226495); discrepancy is 1.407131009625862e-005 c:\program files\quantlib\quantlib-1.0.1\test-suite\utilities.hpp(78): last checkpoint Could you help me on this last thing? Thanks Fred -----Original Message----- From: Luigi Ballabio [mailto:[hidden email]] Sent: 31 August 2010 11:03 To: Frederic Valmorin Cc: Frederic Valmorin; [hidden email] Subject: RE: [Quantlib-users] Errors building QuantLib on VS2008 + BOOST 1.39.0 On Tue, 2010-08-31 at 09:46 +0000, Frederic Valmorin wrote: > How could I check that varianceoption.cpp file is modified? The first line (from which your errors come) should read: /* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -- The young man knows the rules, but the old man knows the exceptions. -- O. W. Holmes This email (including any attachments to it) is confidential, legally privileged, subject to copyright and is sent for the personal attention of the intended recipient only. If you have received this email in error, please advise us immediately and delete it. You are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. Although we have taken reasonable precautions to ensure no viruses are present in this email, we cannot accept responsibility for any loss or damage arising from the viruses in this email or attachments. We exclude any liability for the content of this email, or for the consequences of any actions taken on the basis of the information provided in this email or its attachments, unless that information is subsequently confirmed in writing. Unless otherwise stipulated herein, any opinions contained in this message are those of the author and are not given or endorsed by the company through which this message is sent. Nothing in this message or in its attachments should be construed as a solicitation or offer, or recommendation, to acquire or dispose of any investment or to engage in any other transaction. FM Capital is a limited company registered in England and Wales. Registered Number: 06952225. Registered Office: No 1 Knightsbridge, London SW1X 7LX This email (including any attachments to it) is confidential, legally privileged, subject to copyright and is sent for the personal attention of the intended recipient only. If you have received this email in error, please advise us immediately and delete it. You are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. Although we have taken reasonable precautions to ensure no viruses are present in this email, we cannot accept responsibility for any loss or damage arising from the viruses in this email or attachments. We exclude any liability for the content of this email, or for the consequences of any actions taken on the basis of the information provided in this email or its attachments, unless that information is subsequently confirmed in writing. Unless otherwise stipulated herein, any opinions contained in this message are those of the author and are not given or endorsed by the company through which this message is sent. Nothing in this message or in its attachments should be construed as a solicitation or offer, or recommendation, to acquire or dispose of any investment or to engage in any other transaction. FM Capital is a limited company registered in England and Wales. Registered Number: 06952225. Registered Office: No 1 Knightsbridge, London SW1X 7LX ------------------------------------------------------------------------------ This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users BuildLog.htm (93K) Download Attachment |
On Tue, 2010-08-31 at 11:38 +0000, Frederic Valmorin wrote:
> You were right. The varianceoption.cpp file was modified. > I built the QL solution but i still get 3 errors...see the log Apparently, it's the wrong day to run the test suite. I have the same errors; however, they weren't there in the past days. It's probably a date-adjustment problem that causes the difference to be just above the tolerance set by the test. Your library is as good as mine. Later, Luigi -- Greenspun's Tenth Rule of Programming: Any sufficiently complicated C or Fortran program contains an ad-hoc, informally-specified bug-ridden slow implementation of half of Common Lisp. ------------------------------------------------------------------------------ This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
Thank you Luigi,
I am up and running now Frederic -----Original Message----- From: Luigi Ballabio [mailto:[hidden email]] Sent: 31 August 2010 15:00 To: Frederic Valmorin Cc: Frederic Valmorin; [hidden email] Subject: Re: [Quantlib-users] Errors building QuantLib on VS2008 + BOOST 1.39.0 On Tue, 2010-08-31 at 11:38 +0000, Frederic Valmorin wrote: > You were right. The varianceoption.cpp file was modified. > I built the QL solution but i still get 3 errors...see the log Apparently, it's the wrong day to run the test suite. I have the same errors; however, they weren't there in the past days. It's probably a date-adjustment problem that causes the difference to be just above the tolerance set by the test. Your library is as good as mine. Later, Luigi -- Greenspun's Tenth Rule of Programming: Any sufficiently complicated C or Fortran program contains an ad-hoc, informally-specified bug-ridden slow implementation of half of Common Lisp. This email (including any attachments to it) is confidential, legally privileged, subject to copyright and is sent for the personal attention of the intended recipient only. If you have received this email in error, please advise us immediately and delete it. You are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. Although we have taken reasonable precautions to ensure no viruses are present in this email, we cannot accept responsibility for any loss or damage arising from the viruses in this email or attachments. We exclude any liability for the content of this email, or for the consequences of any actions taken on the basis of the information provided in this email or its attachments, unless that information is subsequently confirmed in writing. Unless otherwise stipulated herein, any opinions contained in this message are those of the author and are not given or endorsed by the company through which this message is sent. Nothing in this message or in its attachments should be construed as a solicitation or offer, or recommendation, to acquire or dispose of any investment or to engage in any other transaction. FM Capital is a limited company registered in England and Wales. Registered Number: 06952225. Registered Office: No 1 Knightsbridge, London SW1X 7LX ------------------------------------------------------------------------------ This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
Free forum by Nabble | Edit this page |