some Big Picture issues and "cannot open file 'QuantLib-vc90-mt-gd.lib'"

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

some Big Picture issues and "cannot open file 'QuantLib-vc90-mt-gd.lib'"

sameer walawalkar

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.



------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Re: some Big Picture issues and "cannot open file 'QuantLib-vc90-mt-gd.lib'"

Luigi Ballabio

On Jul 13, 2010, at 9:56 PM, sameer walawalkar wrote:

> 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


------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Re: some Big Picture issues and "cannot open file 'QuantLib-vc90-mt-gd.lib'"

sameer walawalkar
Thank you. this issue has now been sorted out.

On Tue, Jul 13, 2010 at 4:06 PM, Luigi Ballabio <[hidden email]> wrote:

On Jul 13, 2010, at 9:56 PM, sameer walawalkar wrote:
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



------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users