I've just downloaded the Windows exe install, and my hello world program: echo("aaaa") echo"dddd")
Gives errors. See below. The C version is created in nimcache.
The log:
C:\mike\nimrodCode>nimrod c -r nimtest.nim c:\program files\nimrod\config\nimrod.cfg(36, 11) Hint: added path: 'C:\Users\mike\.babel\libs\' [Path] Hint: used config file 'C:\Program Files\Nimrod\config\nimrod.cfg' [Conf] Hint: system [Processing] Hint: nimtest [Processing] gcc.exe -c -w "-IC:\Program Files\Nimrod\lib" -o c:\mike\nimrodcode\nimcache\nimtest.o c:\mike\nimrodcode\nimcache\nimtest.c gcc.exe -c -w "-IC:\Program Files\Nimrod\lib" -o c:\mike\nimrodcode\nimcache\system.o c:\mike\nimrodcode\nimcache\system.c
Thanks Mike
cpp: Too many arguments
C:mikenimrodCode>
Thanks for the swift reply, Araq. A simple C program with gcc on win7 gives:
gcc ctest.c gcc: installation problem, cannot exec cc1: No such file or directory
Mike
I checked in my nimrod folder,and cc1.exe did come as part of the Windows install.
So... I will wait a bit, until the Windows install is more foolproof.
Mike (looks a great language though)
I just followed the standard defaults for nimrod on windows 7 - ensuring that nimrod got added to path.
My path also includes:
C:Program FilesNimroddistmingwbin;
...and gcc is in that directory.
cc1.exe is in a lower-level directory, and I assume that gcc knows where its components are
Here is the answer, which might also point to a possible improvement in the Windows installer.
I looked up the cc1.exe problem, and the common cause is installing mingw at a file location containing spaces. I used program files, which has a space. I changed this to e.g. c:Nimrod, and it works.
The "Program Files" location is in fact suggested by the nimrod installer, and maybe this needs changing (or at least a message warning about the problem.)
Also, if is necessary to re-start Windows due to changes in the path variable, maybe a message could mention this at the end of install process. I am happy to try out any new versions.
Best Wishes Mike