Tech Off Thread

3 posts

Forum Read Only

This forum has been made read only by the site admins. No new threads or comments can be added.

uint64 and Linux

Back to Forum: Tech Off
  • User profile image
    Massif

    Anyone know how to get gcc running on linux to recognise an unsigned 64 bit integer?

    The uint64 type was recognised when this code ran on VMS, but now it chucks up compiler errors - uint64_t doesn't seem to do anything differently. Is there a header file I'm missing?

    Sigh...

    edit: Well, I'm confused - the documentation I've seen claimed int64_t and uint64_t are standard c99 types, but it wouldn't compile until I replaced them with "long long" and "unsigned long long"

  • User profile image
    brantgurga

    Have you tried compiling as C99. I believe GCC's default is to use gnu90, that is, ANSI C with GNU extensions. Try --std=c99 or --std=gnu99 as compiler flags if you have not done so.

  • User profile image
    Massif

    it's compiling as c99, using -std=c99. For the record it's gcc 3.4.6

    Seeing as long long works it's more of a curiousity now, still - annoying as it took me half an hour to find any cogent documentation.

Conversation locked

This conversation has been locked by the site admins. No new comments can be made.