RE: Problem using QL 0.3.4 under MS-VC++ 6.0

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

I use .hpp for the headers, .cpp for code file. One problem less. No point challenging the compiler, it always wins :-)

cheers

Daniel J. Duffy

> -----Original Message-----
> From: [hidden email]
> [mailto:[hidden email]]On Behalf Of
> Penschke, Walter
> Sent: 19 August 2004 14:53
> To: Penschke, Walter; 'Ferdinando Ametrano'
> Cc: '[hidden email]'
> Subject: RE: [Quantlib-users] Problem using QL 0.3.4 under MS-VC++ 6.0
>
>
> Hi,
>
> I found the reason for my compilation problems. Actually a real stupid
> error.
>
> My C++ source files to be transferred from Linux to Windows,
> did have the
> extensions .H and .C. On Windoze there is no distinction
> between lower and
> upper case. Therefore my C++ were internally treated as
> C-files and not as
> C++-files, which obviously is reflected in a couple of
> internal settins
> during compilation (__cplusplus).
>
> Renaming my source files according to quantlib's coding
> convention (.cpp)
> did solve the problem.
>
>
> Sorry for pestering anybody,
>
> wpe
>
> -----Original Message-----
> From: Penschke, Walter
> Sent: Thursday, August 19, 2004 1:04 PM
> To: 'Ferdinando Ametrano'; Penschke, Walter
> Cc: '[hidden email]'
> Subject: RE: [Quantlib-users] Problem using QL 0.3.4 under MS-VC++ 6.0
>
>
> 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
>
>
> -------------------------------------------------------
> SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
> 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
> Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
> http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
> _______________________________________________
> Quantlib-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/quantlib-users
>