OS
Window 10
nim code
# test2.nim from https://nim-by-example.github.io/hello_world/
echo "Hello world"
command
C:\Users\mycomputer-DESKTOP\Desktop\nimlang>nim c -r --verbosity:0 test2.nim
error
In file included from C:\Users\mycomputer-DESKTOP\nimcache\test2_d\@m..@s..@s..@[email protected]@slib@sstd@[email protected]:7:0:
C:\nim-1.6.14\lib/nimbase.h:282:35: error: static assertion failed: ""
#define NIM_STATIC_ASSERT(x, msg) _Static_assert((x), msg)
In file included from C:\Users\mycomputer T ^
C:\nim-1.6.OP\nimcache\test2_d\@m..@s..@s..@[email protected]@slib@ssystem@sdollars14\lib/nimbase..nim.c:7:0:
h:556:1: note: in expansC:\nim-1.6i.14\lib/nimbase.onh:282:35: error of : static assertmacro 'NIM_STATIC_ASSERT'
NIM_STATIC_iASSERT(sizeof(NI)on failed: ""
#defi == sizeof(void*)ne N && NIM_INITBITS == sizeof(NI)*8, "");
^~M_S~~~~~TATIC_~ASSER~T(x, ms~g) _Static_assert((x), msg)
~ ~~~~ ~ ^
C:\ni~
m-1.6.14\liIn b/nimbasfe.ih:556:1: note: inl expansion of macro 'NIM_STATIC_ASSEeRT'
i NIM_STncluded from C:\Users\mycomputer-DESKTOP\nimcache\test2_d\@m..@s..@s..@[email protected]@slib@AsTIC_ASSERT(sizeof(systNIe) == sizeof(void*) && NIM_INTBITS == sizeof(NI)*8, "");
^~m~~~@sio~~~~~~~~~~~~
.nim.c:7:0:
C:\nim-1.6.14\lib/nimbase.h:282:35: error: static assertion failed: ""
#define NIM_STATIC_ASSERT(x, msg) _Static_assert((x), msg)
^
C:\Enrrori: mexecut-1.6.14\lib/nimbase.h:556:1: note: in expansion of macro 'NIM_STATIC_ASSERT'
NIM_STiATIC_ASSERT(sizeof(NI) == sion of an external compiler program 'gcc.exezeof(void*) && NIM_INTBITS == sizeof(NI)*8, "");
^~~~~~~~In file included from C:\Users\mycomputer~~~~~~~~~
-DE-c -w -fmax-errors=3SKTOP\nimcache\test2_d\@m..@s..@s..@[email protected]@[email protected]:7:0:
C:\ni m-mno-ms-bi-1.6.14\lib/nimbase.h:282:3tfi5: elds -erroICr:\nim-1.6.1: static assertion failed: ""
#define NIM_S4T\ATIC_ASSERT(x, msg) _Static_assert((x), msg)
l ^
iC:\nim-1.6b -IC:\Users\mycomputer-DESKTOP\Desktop\nimlang.14\l ib/nimb-o C:\Users\mycomputer-DESKTOP\nimcache\test2_d\@m..@s..@s..@[email protected]@slib@sstd@[email protected] C:\Users\mycomputer-DESKTOP\nimacache\tsest2_d\@m..@s..@s..@[email protected]:556:1: note: @slib@sstd@[email protected]' failed with exit iIn file included from C:\Users\mycomputer-DESKTOP\nimcachn expansion of macro 'NIM_STATIC_ASSERT'
NIM_STATIC_AceSSERT(sizeof(NI) o\== sizeof(void*) && NIM_INTBITS == sizeof(NI)*8, "");
^~~~~~~~~~tde: 1
~~~~~~~
est2_d\@mtest2.nim.c:7:0:
C:\nim-1.6.14\lib/nimbase.h:282:35: error: static assertion failed: ""
#define NIM_STATIC_ASSERT(x, msg) _Static_assert((x), msg)
^
C:\nim-1.6.14\lib/nimbase.h:556:1: note: in expansion of macro 'NIM_STATIC_ASSERT'
NIM
_STATIC_ASSERTC:\Users\mycomputer-DESKTOP\Desktop\nimlang>(sizeof(NI) == sizeof(void*) && NIM_INTBITS == sizeof(NI)*8, "");
^~~~~~~~~~~~~~~~~
gcc version
gcc (MinGW.org GCC-6.3.0-1) 6.3.0
but when i try compile to js code, no error occure (ofcourse not same nim code). it looks like gcc & nim problem. what should i do to solve this error?