Created
March 24, 2016 15:59
-
-
Save eqs/702d6201539cacfafe59 to your computer and use it in GitHub Desktop.
Nimのプログラムをコンパイルしようとしたら ”error: size of array 'assert_numbits' is negative” とかいうエラーが出た話 ref: http://qiita.com/eqs/items/77eb21d22f8f12c2ebfc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
c:\users\<user name>\nim>nim compile --run fib.nim | |
Hint: system [Processing] | |
Hint: fib [Processing] | |
CC: fib | |
CC: stdlib_system | |
In file included from c:\users\<user name>\nim\nimcache\fib.c:9:0: | |
C:\Nim\lib/nimbase.h:412:13: error: size of array 'assert_numbits' is negative | |
typedef int assert_numbits[sizeof(NI) == sizeof(void*) && NIM_INTBITS == sizeof(NI)*8 ? 1 : -1]; | |
^ | |
In file included from c:\users\<user name>\nim\nimcache\stdlib_system.c:9:0: | |
C:\Nim\lib/nimbase.h:412:13: error: size of array 'assert_numbits' is negative | |
typedef int assert_numbits[sizeof(NI) == sizeof(void*) && NIM_INTBITS == sizeof(NI)*8 ? 1 : -1]; | |
^ | |
Hint: [Link] | |
gcc.exe: error: c:\users\<user name>\nim\nimcache\stdlib_system.o: No such file or directory | |
gcc.exe: error: c:\users\<user name>\nim\nimcache\fib.o: No such file or directory | |
gcc.exe: fatal error: no input files | |
compilation terminated. | |
Error: execution of an external program failed: 'gcc.exe -o c:\users\<user name>\nim\fib.exe c:\users\<user name>\nim\nimcache\stdlib_system.o c:\users\<user name>\nim\nimcache\fib.o ' | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment