This is the mail archive of the
mailing list for the Cygwin project.
Re: gcc: problem with scanf/printf with 64 bit integers on cygwin with -mno-cygwin
- From: "Larry Hall (Cygwin)" <reply-to-list-only-lh at cygwin dot com>
- To: cygwin at cygwin dot com
- Date: Wed, 25 Feb 2009 18:37:42 -0500
- Subject: Re: gcc: problem with scanf/printf with 64 bit integers on cygwin with -mno-cygwin
- References: <49A5D593.email@example.com>
- Reply-to: cygwin at cygwin dot com
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
Larry Hall http://www.rfk.com
RFK Partners, Inc. (508) 893-9779 - RFK Office
216 Dalton Rd. (508) 893-9889 - FAX
Holliston, MA 01746
> Q: Are you sure?
>> A: Because it reverses the logical flow of conversation.
>>> Q: Why is top posting annoying in email?
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html