error: unknown microsoft compiler

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

error: unknown microsoft compiler

simoncourtenage
Hi,

I've built and installed QuantLib 1.0.1 with Microsoft Visual C++ 2010 Express.  I'm trying to get the simple example code from this page http://quantlib.org/install/vc9.shtml up and running.  However, when I try to build the sample project QuantLibTest, I get the following error message:

C:\Program Files\QuantLib-1.0.1\QuantLib-1.0.1\ql/config.msvc.hpp(93): fatal error C1189: #error :  "unknown Microsoft compiler"

Sorry if there is an obvious fix, but I'm a *nix/g++ person, so this is kind of a new world for me ;)

Thanks

Simon
Reply | Threaded
Open this post in threaded view
|

Re: error: unknown microsoft compiler

Luigi Ballabio
On Fri, 2010-04-30 at 02:21 -0700, simoncourtenage wrote:
> I've built and installed QuantLib 1.0.1 with Microsoft Visual C++ 2010
> Express.  I'm trying to get the simple example code from this page
> http://quantlib.org/install/vc9.shtml up and running.  However, when I try
> to build the sample project QuantLibTest, I get the following error message:
>
> C:\Program Files\QuantLib-1.0.1\QuantLib-1.0.1\ql/config.msvc.hpp(93): fatal
> error C1189: #error :  "unknown Microsoft compiler"

Hi Simon,
        Visual C++ Express 2010 wasn't out yet (or I wasn't aware of it) when
we packaged the release, so it's not recognized.  May you try applying
the attached patch to ql/config.msvc.hpp and see whether it works?

Thanks,
        Luigi


--

Westheimer's Discovery:
A couple of months in the laboratory can frequently save a
couple of hours in the library.


------------------------------------------------------------------------------

_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users

2010test.patch (553 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: error: unknown microsoft compiler

Ferdinando M. Ametrano-3
In reply to this post by simoncourtenage
On Fri, Apr 30, 2010 at 11:21 AM, simoncourtenage <[hidden email]> wrote:
> C:\Program Files\QuantLib-1.0.1\QuantLib-1.0.1\ql/config.msvc.hpp(93): fatal
> error C1189: #error :  "unknown Microsoft compiler"

Luigi what if we replace in trunk\QuantLib\ql\config.msvc.hpp (93)

#  error "unknown Microsoft compiler"

with

#  pragma message("untested Microsoft compiler")

The latter would not stop compilation.
Oh.. it would also be quite effective in alerting the user since it t
would be displayed thousands of time... :-D

ciao -- Nando

------------------------------------------------------------------------------
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users