Re: Using Quantlib in MS VC++

Posted by Ferdinando Ametrano-3 on
URL: http://quantlib.414.s1.nabble.com/Using-Quantlib-in-MS-VC-tp2471p2472.html

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