Discussion:
[Quantlib-users] some Big Picture issues and "cannot open file 'QuantLib-vc90-mt-gd.lib'"
sameer walawalkar
2010-07-13 19:56:25 UTC
Permalink
Hello,

I have installed VC++ 2008 (2010 was giving too many problems), QuantLib and
Boost and have gone through the steps of building the complete quantlib
project, and run EquityOption succesfully. But now, in order to understand
various aspects of Quantlib etc, I started a new project called MyProject
and am trying to write a simple Option Pricing code again to implement just
one engine. I have added all the link directories to this project and the
additional directories etc. Yet, when I try to build "MySolution", I get the
following error

LINK : fatal error LNK1104: cannot open file 'QuantLib-vc90-mt-gd.lib'

The funny thing is, I have put MyOption project in the Examples directory of
Quantlib and when I try building QuantLib_vc9 project, I get 0 succeeded, 0
failed (which means that VC9 thinks there is nothing new to do).

So what am I missing here? As many must have guessed, I am comparatively new
to C++, and definitely new to QuantLib, Boost and VC++.


Thanks in advance for any help.
Luigi Ballabio
2010-07-13 20:06:21 UTC
Permalink
Post by sameer walawalkar
I have installed VC++ 2008 (2010 was giving too many problems),
QuantLib and Boost and have gone through the steps of building the
complete quantlib project, and run EquityOption succesfully. But
now, in order to understand various aspects of Quantlib etc, I
started a new project called MyProject and am trying to write a
simple Option Pricing code again to implement just one engine. I
have added all the link directories to this project and the
additional directories etc. Yet, when I try to build "MySolution", I
get the following error
LINK : fatal error LNK1104: cannot open file 'QuantLib-vc90-mt-gd.lib'
The fact that the linker looks for the mt-gd flavor of the library
means that you're compiling your project in Debug mode. You probably
compiled QuantLib in Release mode instead, which resulted in a library
with another name. Synchronize he two and you should be ok.

Luigi
sameer walawalkar
2010-07-14 11:21:38 UTC
Permalink
Thank you. this issue has now been sorted out.
Post by sameer walawalkar
I have installed VC++ 2008 (2010 was giving too many problems), QuantLib
and Boost and have gone through the steps of building the complete quantlib
project, and run EquityOption succesfully. But now, in order to understand
various aspects of Quantlib etc, I started a new project called MyProject
and am trying to write a simple Option Pricing code again to implement just
one engine. I have added all the link directories to this project and the
additional directories etc. Yet, when I try to build "MySolution", I get the
following error
LINK : fatal error LNK1104: cannot open file 'QuantLib-vc90-mt-gd.lib'
The fact that the linker looks for the mt-gd flavor of the library means
that you're compiling your project in Debug mode. You probably compiled
QuantLib in Release mode instead, which resulted in a library with another
name. Synchronize he two and you should be ok.
Luigi
Loading...