[CLN-list] CLN switched to C++11

Jan Rheinländer jrheinlaender at gmx.de
Sun Oct 27 16:03:27 CET 2019


Hi,

the problem is not the MSVC compiler but the configure script. If you
just remove the requirement from configure.ac, then it works fine. I
always comment out the line

AX_CXX_COMPILE_STDCXX_11

and it works. MSVC seems to accept C++11 by default. For some reason, in
spite of that the configure test fails on MSVC.

Jan

Am 27.10.19 um 15:03 schrieb Richard B. Kreckel:
> Hi,
>
> On 10/27/19 2:31 PM, Bruno Haible wrote:
>> Unfortunately, this removes the ability to build with the MSVC compiler:
>> The configuration bails out with
>>    configure: error: *** A compiler with support for C++11 language
>> features is required.
>>
>> This is with MSVC 14 (Visual Studio 2015) [1] which is quite recent.
>>
>> The '#ifdef _MSC_VER' in include/cln/number.h shows that there is some
>> interest in having MSVC support, no?
>
> Hmm, I'm confused about the status of MSVC: Jan Rheinländer has
> proposed f725e59b specifically for Win64, but that's clearly a C++11
> language feature. Is a compiler that came out in 2014 really recent?
> Visual Studio 2017 claims to be C++17, after all. I have no Windows
> machine.
>
> And I just committed the second patch relying on C++11.  :-/
>
>   -richy.
>
> _______________________________________________
> CLN-list mailing list
> CLN-list at ginac.de
> https://www.cebix.net/mailman/listinfo/cln-list


More information about the CLN-list mailing list