discussion forum

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

discussion forum

BERNARDO Mathieu
discussion forum

Hi All

I discover Quant Lib yesterday, but I have substancial difficulties in using your library
I've download the version 6.

To start praticing I tried to do a linear intrepolation, but I do not succed in it.

Here is the small program I've witten:


#include "stdafx.h"
#include <ql/quantlib.hpp>
#include <iostream>
#include <ql/Math/linearinterpolation.hpp>
using namespace QuantLib;

void main()
{

Interpolation interpolation_;
interpolation_ = LinearInterpolation(v.begin();, v.end(), w.begin(););
double x=1.5;
cout<<interpolation_(x,false)<<"\n";
}

But the compiler gives the following link errors:


libcmtd.lib(_file.obj) : error LNK2005: ___initstdio already defined in LIBCD.lib(_file.obj)
libcmtd.lib(_file.obj) : error LNK2005: ___endstdio already defined in LIBCD.lib(_file.obj)
libcmtd.lib(_file.obj) : error LNK2005: __cflush already defined in LIBCD.lib(_file.obj)
libcmtd.lib(_file.obj) : error LNK2005: __iob already defined in LIBCD.lib(_file.obj)
libcmtd.lib(dosmap.obj) : error LNK2005: __dosmaperr already defined in LIBCD.lib(dosmap.obj)
libcmtd.lib(tolower.obj) : error LNK2005: __tolower already defined in LIBCD.lib(tolower.obj)
libcmtd.lib(tolower.obj) : error LNK2005: _tolower already defined in LIBCD.lib(tolower.obj)
libcmtd.lib(osfinfo.obj) : error LNK2005: __alloc_osfhnd already defined in LIBCD.lib(osfinfo.obj)
libcmtd.lib(osfinfo.obj) : error LNK2005: __set_osfhnd already defined in LIBCD.lib(osfinfo.obj)
libcmtd.lib(osfinfo.obj) : error LNK2005: __free_osfhnd already defined in LIBCD.lib(osfinfo.obj)
libcmtd.lib(osfinfo.obj) : error LNK2005: __get_osfhandle already defined in LIBCD.lib(osfinfo.obj)
libcmtd.lib(osfinfo.obj) : error LNK2005: __open_osfhandle already defined in LIBCD.lib(osfinfo.obj)
libcmtd.lib(lseek.obj) : error LNK2005: __lseek already defined in LIBCD.lib(lseek.obj)
LIBCD.lib(crt0init.obj) : warning LNK4098: defaultlib "libcmtd.lib" conflicts with use of other libs; use /NODEFAULTLIB:library

Debug/Test.exe : fatal error LNK1169: one or more multiply defined symbols found


Just notice that I've defined in the settigs/Preprocessor: libcd as an undefined symbols.

If we can help me to go through it would be very nice

Regards Mathieu






Mathieu BERNARDO
CIC - QUANT DERIVES DE CREDIT
6, avenue de Provence - 75452 Paris Cedex 09
Tel: +33 (0) 1 45 96 53 05