Problem to execute a source with Visual Studio 2005

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

Problem to execute a source with Visual Studio 2005

gilles herzog
Hello everybody,
I have Visual studio 2005. Quantlib is compiled but when I want to compile a
simple Example I have a link error because the compiler doesn't find the
file Quantlib-vc80-mt-s-0_3_11.lib.
I have just the lib Quantlib-vc80-mt-gd-0_3_11.lib in quantlib directory.
How can I do ??
Thank you very much

_________________________________________________________________
Tout savoir sur la sécurité de vos enfants sur Internet !
http://go.msn.fr/10-channel/80-security/protection/default.asp



Reply | Threaded
Open this post in threaded view
|

Re: Problem to execute a source with Visual Studio 2005

Luigi Ballabio
On 1/18/06, gilles herzog <[hidden email]> wrote:
> I have Visual studio 2005. Quantlib is compiled but when I want to compile a
> simple Example I have a link error because the compiler doesn't find the
> file Quantlib-vc80-mt-s-0_3_11.lib.
> I have just the lib Quantlib-vc80-mt-gd-0_3_11.lib in quantlib directory.

Make sure you're using the same configuration (Release, Debug, etc.)
for both the library and the examples. They have to match.

Luigi


Reply | Threaded
Open this post in threaded view
|

Re: Problem to execute a source with Visual Studio 2005

gilles herzog
I have downloaded quantlib.zip
Boost.jam
Boost

Boost is correctly compiled and installed
Then I've lauchned the project vc8 in Quantlib directorie.
It take approximatly 2h to compile.
Then, i've seen that 1 librairy is absent and I don't understand that. It
compiles in visual Studio but impossible to build ( LNK error ).
Europeanoption.cpp must be standard I think , no ?
Thank you


>From: Luigi Ballabio <[hidden email]>
>To: gilles herzog <[hidden email]>
>CC: [hidden email]
>Subject: Re: [Quantlib-users] Problem to execute a source with Visual
>Studio 2005
>Date: Wed, 18 Jan 2006 15:21:25 +0100
>
>On 1/18/06, gilles herzog <[hidden email]> wrote:
> > I have Visual studio 2005. Quantlib is compiled but when I want to
>compile a
> > simple Example I have a link error because the compiler doesn't find the
> > file Quantlib-vc80-mt-s-0_3_11.lib.
> > I have just the lib Quantlib-vc80-mt-gd-0_3_11.lib in quantlib
>directory.
>
>Make sure you're using the same configuration (Release, Debug, etc.)
>for both the library and the examples. They have to match.
>
>Luigi

_________________________________________________________________
MSN Hotmail : créez votre adresse e-mail gratuite & à vie !
http://www.imagine-msn.com/Messenger/?locale=fr-fr



Reply | Threaded
Open this post in threaded view
|

Re: Problem to execute a source with Visual Studio 2005

Luigi Ballabio
On 1/18/06, gilles herzog <[hidden email]> wrote:
> Then, i've seen that 1 librairy is absent and I don't understand that. It
> compiles in visual Studio but impossible to build ( LNK error ).

Gilles,
    you have compiled QuantLib in Debug MTDLL configuration, which
resulted in Quantlib-vc80-mt-gd-0_3_11.lib. Now you're trying to
compile EuropeanOption in Release configuration, and the compiler is
telling you that the corresponding version of the library
(Quantlib-vc80-mt-s-0_3_11.lib) is not available. The configurations
must match, so either recompile the library in Release configuration
or compile EuropeanOption in Debug MTDLL configuration. You can select
configurations in your toolbar, or in the Build menu.

Later,
    Luigi