You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
<
8000
link rel="modulepreload" href="https://github.githubassets.com/assets/fhi-7a633016e960b921.js" crossorigin="anonymous" />
It is not possible to compile minizip\test\test.c with MS VS 2017 because of numerouse errors of same type: error C3688: invalid literal suffix 'PRId32'; literal operator or literal operator template 'operator ""PRId32' not found
It seems the C++ compiler can't properly handle lines like:
Adding spaced around PRId32 and PRId64 (to separate the tokens) resolves the issue.
It seems the problems is specific to C++ compiler, because similar fragments in other C-files are compiled fine (by C compiler).
The error happens when file is included (in a C++ file) this way:
Activity
[-]error C3688: invalid literal suffix 'PRId32'; literal operator or literal operator template 'operator ""PRId32' not found[/-][+]error C3688: invalid literal suffix 'PRId32'[/+]nmoinvaz commentedon Sep 9, 2019
PRId32is found in inttypes.h. The test.c source file is not intended to be used as an include.nmoinvaz commentedon Sep 9, 2019
If you want to add spaces around those inttypes.h #defines and submit as a PR.
Fixed invalid literal PRI- when compiling with C++. #416