problem link Quantlib with VS Studio Pro

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

problem link Quantlib with VS Studio Pro

pasparis
Hello

I used Quantlib with studio express 2010 and it works well.

I have to use it with a visual studio pro 2005, I generate the library (Quantlib-vc80-mt-sgd)
the first difference / express 2010 is Quantlib-vc100-mt-gd

the second difference / studio express 2010 is that when we want to link the library in a program it needs
libboost-serialization-vc80-mt-sgd-1-47; I downloaded it and set it for the link

then there are a lot of link errors with "already defined message' in the file msvcprtd.lib

does someone come across a similar problem? thanks inadvance
pascal


------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Re: problem link Quantlib with VS Studio Pro

Luigi Ballabio
On Thu, Mar 29, 2012 at 10:14 PM,  <[hidden email]> wrote:
> I used Quantlib with studio express 2010 and it works well.
>
> I have to use it with a visual studio pro 2005, I generate the library
> (Quantlib-vc80-mt-sgd)
> the first difference / express 2010 is Quantlib-vc100-mt-gd

That's because you're using "Debug (static runtime)" in VC2005.  If
you switch to "Debug" you'll get Quantlib-vc80-mt-gd.

> the second difference / studio express 2010 is that when we want to link the
> library in a program it needs
> libboost-serialization-vc80-mt-sgd-1-47; I downloaded it and set it for the
> link
>
> then there are a lot of link errors with "already defined message' in the
> file msvcprtd.lib

You're probably mixing configurations.  Try using "Debug" and see if
it solves this, too.

Luigi

P.S. Unless you want to actually debug your code, I'd suggest using
the "Release" configuration.  It's much faster.

------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users