My system is windows 64-bit operation system, when i install 0.9.6 version and compiler a nim file,i got the follow error:
D:Nimrodlib/nimbase.h:383:13: error: size of array 'assert_numbits' is negative
I comment the line in the nimbase.h file it is ok. I want to know why?
If you can comment out this line, maybe you can also read the comment in the file?
/* Test to see if nimrod and the C compiler agree on the size of a pointer.
On disagreement, your C compiler will say something like:
"error: 'assert_numbits' declared as an array with a negative size" */
typedef int assert_numbits[sizeof(NI) == sizeof(void*) && NIM_INTBITS == sizeof(NI)*8 ? 1 : -1];
Do not simply uncomment this check! Fix your setup instead.
It's likely that you have some other GCC in your PATH that's used instead of the 64 bit version of MingW that you can select via the installer.