Problem using QL 0.3.4 under MS-VC++ 6.0

Posted by Penschke, Walter on
URL: http://quantlib.414.s1.nabble.com/Problem-using-QL-0-3-4-under-MS-VC-6-0-tp3171.html

Hi,

I started using Quantlib version 0.3.4 under Linux. Under Linux I created my
own project based on standard Makefiles. The project uses the quantlib
library and everything works fine.

Now, I also need to support Microsoft Visual C++ 6.0 on Windows (NT4). Here,
I set up a separate new project, which includes my source files and I tried
to link in the quantlib library in the same way as the Quantlib Examples
(AmericanOption) are doing it. In particular, I compared all the project
settings of the quantlib example with mine and adjusted my own project
settings accordingly.

However, I cannot get my stuff compiled. Visual C++ is complaining about the
"Use RTTI" option not being checked. As a matter of fact, however, the
"Enable RTTI" option is checked. The reason seems to be that the
preprocessor symbol _CPPRTTI referenced in ql\config.msvc.hpp is not
defined. Defining this symbol manually leads to an uncounted number of error
messages, such as "... 'false' : undeclared identifier", "expected constant
expression" or "... 'int ' : no members defined using this type", which are
raised in standard VC++ include files such as limits (most of them there) or
iosfwd.

I am really starting to become desperate about this, especially because the
stuff seamlessly compiles and runs under Linux. Is there anybody out there
who might be able to help me with the problem or does anybody know about a
HOWTO, which details how to use quantlib in a Visual C++ project.

Please let me know if you need additional detailled information about my
project setup.


Thanks in advance,

wpe