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

Larry Hall (Cygwin) reply-to-list-only-lh@cygwin.com
Wed Feb 25 23:41:00 GMT 2009


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                              http://www.rfk.com
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:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list