I ignored the finish.exe and tried to compile the first example in tutorial. 
The error message is below. Apparently the architecture of the nim and gcc 
differs.
    
    
    In file included from C:\tmp\nim\nim\hello\nimcache\stdlib_system.c:9:0:
    C:\Prog\nim-0.16.0_x64\nim-0.16.0\lib/nimbase.h:443:13: error: size of 
array 'Ni
    m_and_C_compiler_disagree_on_target_architecture' is negative
     typedef int Nim_and_C_compiler_disagree_on_target_architecture[sizeof(NI) 
== si
    zeof(void*) && NIM_INTBITS == sizeof(NI)*8 ? 1 : -1];
                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    

So, instead of x64 one, i downloaded nim-0.16.0_x32.zip from 
[http://nim-lang.org/download.html](http://nim-lang.org/download.html) and it 
works now.

That being said, this is confusing: I am using mingw-64, but the nim binary 
that works with it is nim..._x32.

This brings a question: What is the architecture of the hello.exe? 32 bit? 64 
bit?

Reply via email to