Hi,

I'm trying to use the "long long int" type, but I seem to be having some trouble. I'm using g++ (version 3.4.5, 2006, as far as I can tell), in MinGW, programming in the NetBeans 6.1 IDE. The trouble is that the compiler recognizes "long long int" (and its variations), but doesn't seem to be able to actually deal with them - arithmetic and printing show obvious errors. For example:

Code:
#include <stdlib.h>
#include <stdio.h>
#include <limits.h>

int main(){
   printf("sizeof(long long): %d, Min: %lld, Max: %lld\n",
             sizeof(long long), LLONG_MIN, LLONG_MAX);
   return 0;
}
My result is:

Code:
sizeof(long long): 8, min: 0, max -2147483648
Anybody have any idea what might be causing this? I needses my 8-byte integers, yes I does...

Thanks much in advance