bug-gsl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-gsl] fix for a broken complex macro from MSVC headers


From: Rhys Ulerich
Subject: Re: [Bug-gsl] fix for a broken complex macro from MSVC headers
Date: Sun, 30 Sep 2012 14:13:16 -0500

Hi Victor,

> I had a compilation error when trying to build GSL with Visual C++. The
> problem was that the math.h supplied with this compiler redefines complex
> as _complex thus messing up the concatenated names in the GSL matrix
> library, for example, gsl_matrix__complex_submatrix (note double "_"
> between matrix and complex).
>
> The attached trivial patch fixes the problem by undefining complex in
> templates_on.h

This sounds like the right fix, but I'd like to make it MSVC-specific.
 Any chance you could add some vendor-specific ifdefs to the patch?

- Rhys



reply via email to

[Prev in Thread] Current Thread [Next in Thread]