[Mingw-users] warning about conversion type character 'L' in printf

Back to archive index
Eli Zaretskii eliz****@gnu*****
Wed Dec 18 01:33:04 JST 2019


> From: Joachim Wuttke <j.wut****@fz-ju*****>
> Date: Tue, 17 Dec 2019 16:35:16 +0100
> 
> This code
> 
>     long double phi = ...;
>     printf( "phi %20.14Le\n", phi);
> 
> results in this warning
> 
>     unknown conversion type character 'L' in format [-Wformat=]
> 
> when compiling with MinGW-gcc 8.2.0, -C99.

I think you need to use MinGW ANSI stdio to get a replacement printf
which does support that.  MSVCRT.DLL doesn't, AFAIK.



More information about the MinGW-Users mailing list
Back to archive index