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: open(O_RDWR) and lseek() fail


On 03/28/2014 07:05 AM, Eric Blake wrote:
> If you want to use %lld, you have to use C99, not C89; use gcc -std=c99
> or gcc -std=gnu99.  By omitting -std, you got gcc's default, which for
> now is still -std=c89.

Or more precisely:

'gcc' is short for 'gcc -std=gnu89'
'gcc -pedantic' is short for 'gcc -std=c89 -pedantic'

where the gnu89 standard allows 64-bit types, but the pedantic c89
standard does not.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


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