Link error

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

Link error

Martin Geving Pedersen
Hi, when I try to build a program using quantlib I get the error:  Error 1 fatal error LNK1104: cannot open file 'QuantLib-vc80-mt-gd-0_3_13.lib' example1. In my quantlib\lib director there exists a 'QuantLib-vc80-mt-s-0_3_13.lib' -file. Does anyone know what the reason for this error might be?
 
Martin
 
Reply | Threaded
Open this post in threaded view
|

Re: Link error

Luigi Ballabio
On Mon, 2006-10-30 at 13:54 +0100, Martin Geving Pedersen wrote:
> Hi, when I try to build a program using quantlib I get the error:
> Error 1 fatal error LNK1104: cannot open file
> 'QuantLib-vc80-mt-gd-0_3_13.lib' example1. In my quantlib\lib director
> there exists a 'QuantLib-vc80-mt-s-0_3_13.lib' -file. Does anyone know
> what the reason for this error might be?

You compiled QuantLib in release mode (which gave you
QuantLib-vc80-mt-s-0_3_13.lib) but now you're building your program in
debug mode, which causes it to look for a library in a different format.
You can recompile either the program or the library so that the two
modes match.

Later,
        Luigi


----------------------------------------

It is always the best policy to tell the truth, unless, of course,
you are an exceptionally good liar.
-- Jerome K. Jerome