On Oct 26, 2007, at 9:33 AM, Sisyphus wrote:

I believe the errors arise because the 'guint64' type is uknown. Is there a
missing header ?

guint64 is part of GLib, since Torsten posted code from the Glib perl module. You'll want to get uint64_t, wherever Microsoft decided to define that (as i recall, it is *not* in the C99 standard's inttypes.h or stdint.h headers...).


As regards runtime errors, something like "%llu" will not be interpreted correctly on Windows 2000 and earlier - you'll want to use "%I64u", "%I64x" and "%I64d".

And those, of course, are not portable to other compilers. I've seen the perl internals use macros to define the proper format specifiers, and use them like so:

   printf ("foo " UINT64_FORMAT "\n", some_uint64_val);


--
It's all very complicated and would take a scientist to explain it.
  -- MST3K


Reply via email to