This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gcc: problem with scanf/printf with 64 bit integers on cygwin with -mno-cygwin

On 02/25/2009, Helmut Brandl wrote:
I use the type "unsigned long long" and "long long" to get 64 bit
integers on gcc.

For reading and writing I use the formatting e.g.

unsigned long long u64;

u64 = ...;

printf("a 64 bit integer %llu\n", u64);

This has worked up to now on all systems using gcc except on cygwin
compiling with the option -mno-cygwin and on mingw.

Cygwin's '-mno-cygwin' flag means use Cygwin's mingw compiler package. So this is a mingw issue. I recommend looking for the solution at the mingw site.

Larry Hall                    
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
216 Dalton Rd.                          (508) 893-9889 - FAX
Holliston, MA 01746


A: Yes.
> Q: Are you sure?
>> A: Because it reverses the logical flow of conversation.
>>> Q: Why is top posting annoying in email?

Unsubscribe info:
Problem reports:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]