[CP2K-user] [CP2K:19398] Re: cp2k compilation fail on grid_cpu_collocate.c
Mario A Bianchet
mabianchet at gmail.com
Thu Oct 19 20:04:55 UTC 2023
Hey Ole
I am using spack to install it with gcc12.1
On Thursday, October 19, 2023 at 6:44:33 AM UTC-4 Ole Schütt wrote:
> Hi Mario,
>
> > The variable DBL_DECIMAL_DIG; is now declared in cfloat.h not anymore in
> float.h
>
> I believe this only applies to C++. Since grid_cpu_collocate.c is a C
> file, the float.h header should still be correct.
>
> Your build probably fails because you selected an older standard. The
> DBL_DECIMAL_DIG macro was only added in the C11.
>
> -Ole
>
> On Thursday, October 19, 2023 at 5:33:12 AM UTC+2 Mario A Bianchet wrote:
>
>> Hello
>> cp2k 2023.2 verion
>> The variable DBL_DECIMAL_DIG; is now declared in cfloat.h not anymore
>> in float.h
>> error:
>>
>> 327 47 | const int D = DBL_DECIMAL_DIG;
>> 328 | ^~~~~~~~~~~~~~~
>> 329 | DECIMAL_DIG
>> 330
>> /tmp/mbianch1/spack-stage/spack-stage-cp2k-2023.2-du533sl6bhg7revw3abcejktx7qaqm3w/spack-src/src/grid/cpu/grid_cpu_collocate.c:47:17:
>> note: each undeclared identifier is reported only once ,,,
>>
>> Mario
>>
>
--
You received this message because you are subscribed to the Google Groups "cp2k" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cp2k+unsubscribe at googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cp2k/dac30061-1f7f-4f6c-a5f8-50369cdf614fn%40googlegroups.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cp2k.org/archives/cp2k-user/attachments/20231019/49379246/attachment.htm>
More information about the CP2K-user
mailing list