Hi
I installed the new version 15.2 via installer and I am unable to compile .
PS C:\Users\rsharan\Desktop> nim c -r test.nim
Hint: used config file 'C:\Program Files\Nim\config\nim.cfg' [Conf]
Hint: system [Processing]
Hint: test [Processing]
CC: test
Hint: [Link]
c:\users\rsharan\desktop\nimcache\stdlib_system.o:stdlib_system.c:(.text+0xbd8b): undefined reference to `_wfopen'
c:\users\rsharan\desktop\nimcache\stdlib_system.o:stdlib_system.c:(.text+0xbd8b): relocation truncated to fit: R_X86_64_
PC32 against undefined symbol `_wfopen'
c:\users\rsharan\desktop\nimcache\stdlib_system.o:stdlib_system.c:(.text+0xc19c): undefined reference to `_wfreopen'
c:\users\rsharan\desktop\nimcache\stdlib_system.o:stdlib_system.c:(.text+0xc19c): relocation truncated to fit: R_X86_64_
PC32 against undefined symbol `_wfreopen'
collect2: error: ld returned 1 exit status
Error: execution of an external program failed: 'gcc.exe -o c:\users\rsharan\desktop\test.exe c:\users\rsharan\deskto
p\nimcache\stdlib_system.o c:\users\rsharan\desktop\nimcache\test.o '
PS C:\Users\rsharan\Desktop> gcc
gcc: fatal error: no input files
compilation terminated.
Using the zip gives me error with mingw (incompatible version).
Using the zip gives me error with mingw (incompatible version).
Well that seems to be the problem then? You have some outdated GCC in your PATH.
but my config file says " #gcc.path = r"$nimdistmingwbin""
The # means that this line is commented out. I'm pretty sure that the zips don't include MinGW, just install a newer one.
woops! sorry, newb mistake.
the problem was that the path of another installation of MingW was higher up in the tree than the nim one. used Rapid Env editor to restructure it and now it works fine. thanks.