c - error: unknown conversion type character 'l' in format - scaning long long -
i'm trying long long
console using standard io function scanf
. started %lld
:
scanf("%lld", &rule);
that throws:
error: unknown conversion type character 'l' in format [-werror=format=]
i've found more workarounds, throw errors:
scanf("%i64d", &rule); ->error: iso c not support 'i64' ms_scanf length modifier [-werror=format=] scanf("%"scnd64"", &rule); ->error: expected ')' before 'scnd64'
am doing wrong? there trick?
i'm compiling on recent version of mingw gcc these flags: -pedantic -wall -werror -std=c99 -g -d home=1
for scnd64
, similar, you'd have use
#include <inttypes.h>
but of supposed work if compiler supports c99. first error message strong indication doesn't, or didn't give right commandline switches.
Comments
Post a Comment