-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Description
I was going through the Nim tutorial at http://nim-lang.org/docs/tut1.html
and can never get a program to compile.
I get;
C:\Users\user\Desktop\nim>nim compile --run greetings.nim
Hint: used config file 'C:\Nim\config\nim.cfg' [Conf]
Hint: system [Processing]
Hint: greetings [Processing]
CC: greetings
CC: stdlib_system
In file included from c:\users\user\desktop\nim\nimcache\stdlib_system.c:9:0:
C:\Nim\lib/nimbase.h:456:13: error: size of array 'assert_numbits' is negative
typedef int asIsne rfti_lneu mibnictlsu[dseidz eforfo(mN Ic): \=u=s esrisz\eaosf1(nvdoui\dd*e)s k&t&o pN\InMi_mI\NnTiBmIcTaSc h=e=\ gsriezeetoifn(gNsI.)c*8 ? 1 : -1];
: 9 : 0 :^
C:\Nim\lib/nimbase.h:456: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\desktop\nim\nimcache\stdlib_system.o: No such file or directory
gcc.exe: error: c:\users\user\desktop\nim\nimcache\greetings.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\desktop\nim\greetings.exe c:\users\user\desktop\nim\nimcache\stdlib_system.o c:\users\user\desktop\nim\nimcache\greetings.o '
Also installing packages with nimble e.g nimble install nake
thwows an error, Error: unhandled exception: Build failed for package: nimsuggest [BuildFailed]
I have MinGNU in my path.
What could be the problem?
Metadata
Metadata
Assignees
Labels
No labels