problem with matrix class

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

problem with matrix class

tinou35
Hi,
i'm new user of quantlib.
I'm trying to use the matrix class of quantlib. When i create matrix, there are no problem. but when i try to change an element inside on of them such as :

Matrix M1 = Matrix(1,1,1);
M1[0][0]=1.0;

I have the following result, and i haven't any idea of how to solve it.

test.obj : error LNK2019: symbole externe non résolu "public: __thiscall QuantLib::Error::Error(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,long,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??0Error@QuantLib@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@J00@Z) référencé dans la fonction "public: double * __thiscall QuantLib::Matrix::row_begin(unsigned int)" (?row_begin@Matrix@QuantLib@@QAEPANI@Z)
test.obj : error LNK2001: symbole externe non résolu "public: virtual char const * __thiscall QuantLib::Error::what(void)const " (?what@Error@QuantLib@@UBEPBDXZ)

thx
Reply | Threaded
Open this post in threaded view
|

Re: problem with matrix class

Luigi Ballabio
On Wed, 2009-01-07 at 09:33 -0800, tinou35 wrote:
> I'm trying to use the matrix class of quantlib. When i create matrix, there
> are no problem. but when i try to change an element inside on of them such
> as :
>
> Matrix M1 = Matrix(1,1,1);
> M1[0][0]=1.0;
>
> I have the following result, and i haven't any idea of how to solve it.

It's a linker error. How did you compile QuantLib, and how are you
compiling/linking your program?

Luigi


--

Father's got the sack from the water-works
For smoking of his old cherry-briar;
Father's got the sack from the water-works
'Cos he might set the water-works on fire.



------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Re: problem with matrix class

tinou35
In reply to this post by tinou35
I use visual C++ 2005.
the main problem is the constructor of matrix works, (i can create a matrix full of 1 for instance) but i can't use some functions inside the same class such as M[1][1]=1;

thx
Reply | Threaded
Open this post in threaded view
|

Re: problem with matrix class

Luigi Ballabio
On Fri, 2009-01-09 at 08:35 -0800, tinou35 wrote:
> I use visual C++ 2005.
> the main problem is the constructor of matrix works, (i can create a matrix
> full of 1 for instance) but i can't use some functions inside the same class
> such as M[1][1]=1;

What is the error message you get?

Luigi


--

The box said "Use Windows 95 or better," so I got a Macintosh.



------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users