Re: Link error
Posted by Luigi Ballabio on
URL: http://quantlib.414.s1.nabble.com/Link-error-tp5131p5132.html
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