Posted by
Nehal Patel on
URL: http://quantlib.414.s1.nabble.com/problem-compiling-testsuite-project-tp2627p2628.html
Things like this always require a good night's sleep before they get
resolved...
Anyway, with a fresh mind this morning and upon a slightly more thorough
examination I noticed that cppunit.dsp is uses the multi-threaded, DLL
version of the runtime library but the various quantlib projects use the
multi-threaded, __statically linked__ versions. Changing cppunit.dsp to be
consistent with quantlib solves my problems and testsuite complies, but...
The 0.3.1 release uses the multi-threaded, __dll__ runtimes. I guess
somewhere between that release and now, the projects in cvs started using
the static link versions. Was there a particular reason for this? I'm
definitely not a great expert at this, but my guess is that most other
external libraries will come configured to used the MT/DLL runtimes. Of
course, I suppose each user can tweak these setting to their particular
needs, but it seems like keeping the DLL runtimes might be a good choice for
the default.
Anyway, off I go to tackle building Quantlib/SWIG.
Take care, nehal
-----Original Message-----
From: Ferdinando Ametrano [mailto:
[hidden email]]
Sent: Friday, July 25, 2003 3:59 AM
To: Nehal Patel; '
[hidden email]'
Subject: Re: [Quantlib-users] problem compiling testsuite project
At 02:24 PM 7/24/2003 -0400, Nehal Patel wrote:
> I am having trouble getting the testsuite project to
> compile... Here is what I have done so far:
>[...]
> Incidentally I tried building both cppunit and quantlib in VC6 - for
> cppunit all 9 configs succeeded, but testsuite still had similar linker
> errors to what's above. (also there are a few compiler warnings that VC7
> emits but vc6 does not)
>
>Anyone have thoughts on things I could try to track this problem down?
I currently use cppunit for the QuantLib test suite with no problem in VC6.
I had to tweak something in the project settings of cppunit. I don't
remember what, but it must have been run-time libraries, exception
handling, and RTTI in order to synch them with QuantLib setting.
The relevant project of the cppunit workspace is cppunit.dsp.
Should you still have problem email me off list and we can figure out which
setting need tweaking. I expect you will provide unit test for SVD and MC
American options in return ;-)
------------
ciao -- Nando