Skip to content

.nim files cannot compile on windows 10 x64 nim version 0.14.2_x64 #4460

@as1ndu

Description

@as1ndu

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions