Hi
It is my frist time to use QuantLib. My simple test program never works. Can
anyone tell me why? Is there something missing. I used VC 2008. Thanks
James
********************************************************************
// QuantLibTest01.cpp : Defines the entry point for the console application.
//
#include <ql/quantlib.hpp>
#include <iostream>
#include "stdafx.h"
using namespace QuantLib ;
int _tmain(int argc, _TCHAR* argv[])
{
Calender calender = TARGET() ;
Date todaysDate(25, July, 2010) ;
return 0;
}
*************************************************************************************
compiling message:
------ Rebuild All started: Project: QuantLibTest01, Configuration: Debug
Win32 ------
Deleting intermediate and output files for project 'QuantLibTest01',
configuration 'Debug|Win32'
Compiling...
stdafx.cpp
Compiling...
QuantLibTest01.cpp
c:\finprogram\quantlibtest01\quantlibtest01\quantlibtest01.cpp(4) : warning
C4627: '#include <ql/quantlib.hpp>': skipped when looking for precompiled
header use
Add directive to 'stdafx.h' or rebuild precompiled header
c:\finprogram\quantlibtest01\quantlibtest01\quantlibtest01.cpp(5) : warning
C4627: '#include <iostream>': skipped when looking for precompiled header
use
Add directive to 'stdafx.h' or rebuild precompiled header
c:\finprogram\quantlibtest01\quantlibtest01\quantlibtest01.cpp(9) : error
C2871: 'QuantLib' : a namespace with this name does not exist
c:\finprogram\quantlibtest01\quantlibtest01\quantlibtest01.cpp(13) : error
C2065: 'Calender' : undeclared identifier
c:\finprogram\quantlibtest01\quantlibtest01\quantlibtest01.cpp(13) : error
C2146: syntax error : missing ';' before identifier 'calender'
c:\finprogram\quantlibtest01\quantlibtest01\quantlibtest01.cpp(13) : error
C2065: 'calender' : undeclared identifier
c:\finprogram\quantlibtest01\quantlibtest01\quantlibtest01.cpp(13) : error
C3861: 'TARGET': identifier not found
c:\finprogram\quantlibtest01\quantlibtest01\quantlibtest01.cpp(14) : error
C2065: 'Date' : undeclared identifier
c:\finprogram\quantlibtest01\quantlibtest01\quantlibtest01.cpp(14) : error
C2146: syntax error : missing ';' before identifier 'todaysDate'
c:\finprogram\quantlibtest01\quantlibtest01\quantlibtest01.cpp(14) : error
C2065: 'July' : undeclared identifier
c:\finprogram\quantlibtest01\quantlibtest01\quantlibtest01.cpp(14) : error
C3861: 'todaysDate': identifier not found
Build log was saved at
"file://c:\FinProgram\QuantLibTest01\QuantLibTest01\Debug\BuildLog.htm"
QuantLibTest01 - 9 error(s), 2 warning(s)
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
|