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: address@hidden
Subject: Re: [Bug-gsl] fix for a broken complex macro from MSVC headers
Date: Mon, 1 Oct 2012 10:18:44 -0700

Sure. Please find attached the updated patch.

Thanks,
Victor

On Sun, Sep 30, 2012 at 12:13 PM, Rhys Ulerich <address@hidden>wrote:

> 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
>

Attachment: 0001-Undefine-complex-on-MSVC.patch
Description: Binary data


reply via email to

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