1st Time User: Dosen't Work

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

1st Time User: Dosen't Work

james shaw-7
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 ==========

 


------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://ad.doubleclick.net/clk;226879339;13503038;l?
http://clk.atdmt.com/CRS/go/247765532/direct/01/
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Re: 1st Time User: Dosen't Work

animesh
Disable precompiled headers in your IDE.

On 7/26/10 7:13 AM, james shaw wrote:
skipped when looking for precompiled header use

-- 
Regards,
Animesh Saxena

(http://quantanalysis.wordpress.com)

------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://ad.doubleclick.net/clk;226879339;13503038;l?
http://clk.atdmt.com/CRS/go/247765532/direct/01/
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users