Re: It is nice to meet you.
Posted by
Jón Gísli Egilsson on
URL: http://quantlib.414.s1.nabble.com/It-is-nice-to-meet-you-tp326p330.html
Hello Sunao Furukawa.
I believe the C++ compiler is telling you that there is no default constructor for the object BlackScholesCalculator. If you check out:
then you will see that you need to initialize the object with a few parameters. The constructor should look like this:
I hope this helps.
Regards.
Jón Gísli
PS I hope I'm replying correctly to the post list.
On Thu, Feb 10, 2011 at 11:17 AM, sunao furukawa
<[hidden email]> wrote:
Hello,Everyone!
It is nice to meet you.
My name is Sunao Furukawa.
I am Japanese.
I can understand English a little.
I am beginner of QuantLib.
I use Visual C++ 2008 Express edition.
I try writing QuantLib program,below.
-------------------------------------------------------
#include "stdafx.h"
#include <ql/pricingengines/blackscholescalculator.hpp>
#include <ql/quantlib.hpp>
#include <iostream>
int _tmain(int argc, _TCHAR* argv[])
{
QuantLib::BlackScholesCalculator BS;
std::cout << BS.delta();
return 0;
}
------------------------------------------------------
This program emit error C2512: No default constructor is available for the
specified class, structure, or union.
I don't know what to do.
Please tell me how to fix this program, not to emit error.
Thanks.
------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users