Using Quantlib in MS VC++

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

Using Quantlib in MS VC++

Amir Johari Sulaiman
Hi Quantlib

I have downloaded Quantlib Win32 version. I downloaded the full installation
exe file from the website. However when I open the Quantlib workspace and
compiling it, I encounter the problem

LINK : fatal error LNK1104: cannot open file "QuantLib_d.lib"
Error executing link.exe.

It seems that I don't have the QuantLib_d.lib file. Where can I get it? Im
sorry to ask this question because to some people this problem is a trivial
one but not to me. I think I am compiling all the source codes naively. Can
u tell me how to use Quantlib correctly. Thanks.

Regards
Amir

******************************************************************
The contents of this e-mail may be confidential. Do not disclose,
copy or distribute it if you are not the intended recipient. It may
also be unlawful to do so.

This e-mail is sent without any implied warranty or representation
as to the accuracy or completeness of its contents, or as to the
authority of the sender to send it. Do not rely on its contents without
written confirmation from a duly authorised employee of CIMB.

Please notify [hidden email] if you have received this message in error.

********************************************************************


Reply | Threaded
Open this post in threaded view
|

Re: Using Quantlib in MS VC++

Ferdinando Ametrano-3
Hi Amir

>I have downloaded Quantlib Win32 version. I downloaded the full installation
>exe file from the website. However when I open the Quantlib workspace and
>compiling it, I encounter the problem
>
>LINK : fatal error LNK1104: cannot open file "QuantLib_d.lib"
>Error executing link.exe.
switch to the "Win32 Release" build configuration and you won't have this
problem, since the release version QuantLib.lib it's pre-compiled and
distributed with the installer

>It seems that I don't have the QuantLib_d.lib file. Where can I get it?
from http://quantlib.org/download.html#qlcpp download
QuantLib-0.3.1-debug.zip (10 MB, debug libraries)

You can even build the debug library yourself: switch to the "Win32 Debug"
build configuration, select the QuantLib project and build it. Then you can
build all the examples since they will find the QuantLib_d.lib that you
have just built.

>  Im sorry to ask this question because to some people this problem is a
> trivial
>one but not to me. I think I am compiling all the source codes naively. Can
>u tell me how to use Quantlib correctly.
I guess you are not that much familiar with C++ and/or Visual Studio ...
the latter is something you can learn easily, the former might be a major
obstacle.

good luck


------------
ciao -- Nando