H
Hans Vlems
I'm moving from the djgpp environment to mingw. This also implies a
more modern C compiler,
djgpp supports gcc 4.4.4 and mingw uses gcc 4.7.0 (possibly not the
most current version but
that's what I have available right now).
The change resulted in one error and one I can't figure out.
A call to sscanf like sscanf(charptr,"%lld",&longlonginteger);
presented to problem for 4.4.4, neither syntactically nor in resulting
functionality. The compiler didn't complain and the code behaved as I
expected so no complaints.
However gcc 4.7.0 flags an error:
t2.c:6:3: warning: unknown conversion type character l in format [-
Wformat]
t2.c:6:3: warning: too many arguments for format [-Wformat-extra-args]
The question is what conversion specification is required to read and
print long long int variables?
Hans
PS
The compiler errors are translated from Dutch so will very likely
differ from the original English messages
more modern C compiler,
djgpp supports gcc 4.4.4 and mingw uses gcc 4.7.0 (possibly not the
most current version but
that's what I have available right now).
The change resulted in one error and one I can't figure out.
A call to sscanf like sscanf(charptr,"%lld",&longlonginteger);
presented to problem for 4.4.4, neither syntactically nor in resulting
functionality. The compiler didn't complain and the code behaved as I
expected so no complaints.
However gcc 4.7.0 flags an error:
t2.c:6:3: warning: unknown conversion type character l in format [-
Wformat]
t2.c:6:3: warning: too many arguments for format [-Wformat-extra-args]
The question is what conversion specification is required to read and
print long long int variables?
Hans
PS
The compiler errors are translated from Dutch so will very likely
differ from the original English messages