RE: 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-tp3171p3174.html

Ok,

got ql-037 finally working and compiling with boost.

Now I want to use the quantlib library in my own project. I did check the
RTTI-Option, I did define NOMINMAX and I am sure there is no problem with
includes or libraries.

Compiling my project now leads to the following error messages, which I did
shorten:

--- BEGIN ---
--------------------Configuration: mv_pricing_test - Win32
Debug--------------------
Compiling...
FloatSwapLeg.C
c:\program files\microsoft visual studio\vc98\include\eh.h(32) : fatal error
C1189: #error :  "eh.h is only for C++!"
FloatSwapLegPricingEngine.C
c:\program files\microsoft visual studio\vc98\include\iosfwd(24) : error
C2143: syntax error : missing '{' before '<'
c:\program files\microsoft visual studio\vc98\include\iosfwd(24) : error
C2059: syntax error : '<'
c:\program files\microsoft visual studio\vc98\include\iosfwd(71) : error
C2143: syntax error : missing '{' before '<'
c:\program files\microsoft visual studio\vc98\include\iosfwd(71) : error
C2059: syntax error : '<'
c:\program files\microsoft visual studio\vc98\include\iosfwd(73) : error
C2143: syntax error : missing '{' before '<'
c:\program files\microsoft visual studio\vc98\include\iosfwd(73) : error
C2059: syntax error : '<'
c:\program files\microsoft visual studio\vc98\include\iosfwd(74) : error
C2061: syntax error : identifier 'wstreampos'
--- END ---

This looks pretty similar to the problems I had, when using ql-034. I have
no idea what's going on here. May be some kind of a fundamental setup
problem?

Any help desperately appreciated,


wpe


-----Original Message-----
From: Ferdinando Ametrano [mailto:[hidden email]]
Sent: Wednesday, August 18, 2004 6:24 PM
To: Penschke, Walter
Cc: '[hidden email]'
Subject: RE: [Quantlib-users] Problem using QL 0.3.4 under MS-VC++ 6.0


Hi Walter


>I went for version 0.3.7 as you told me. After adapting my code base there
>were no problems when compiling the whole lot under Linux.
>
>With NT [...] it can't find the boost library. Under Linux no complaint
about
>boost. Does the boost library have to be installed separtely for NT?

yes, under Windows Boost has to be installed separately. QuantLib and
QuantLibFunctions need Boost header files, while the test suite requires
Boost unit-test libraries, so you have to build Boost libraries.

Under Linux Boost is to be installed separately too: my guess is that you
just didn't notice because of the automatic dependencies handling of your
Linux distribution.

ciao -- Nando