The program that compiles successfully with version 0.16.0, is now compiled with version 0.17.0 but went wrong. The error follows:

Error: invocation of external compiler program failed. 绯荤粺鎵句笉鍒版寚瀹氱殑鏂囦欢銆?

Additional info: Requested command not found: '..\mingw32\bin\gcc.exe -c  -w -O3 -fno-strict-aliasing  -IF:\tools\develop\Nim\NimLanguage\lib -o D:\Project\bookcx\nimcache\app.o D:\Project\bookcx\nimcache\app.c'. OS error: 2

In addition, why not like the Go Nim language and Rust language as no C compiler, can not make a complete compiler. I think it would be better, there will not be such a mistake. But the development difficulty is increased

2017-05-18 00:33:26
The solution to the problem is not to download the official ZIP package, but you can download the source code to compile it!I strongly recommend that the NIM language be not compiled into C, but that it will work directly on its own full compiler! 2017-05-18 01:12:24
bpr

I strongly recommend that the NIM language be not compiled into C,

There's an LLVM backend (nlvm) in the works.

I think that even after NLVM becomes stable and successful, there will still be an important place for the other backends, including the C and C++ ones. C and C++ have a lot of reach.

2017-05-18 03:04:02
Well you could tell us more about your problem before suggesting we throw away our existing backends for your convenience. 2017-05-18 06:50:43

More detailed information about the issue:

https://github.com/nim-lang/Nim/issues/5835

BTW, I just registered forum account for this thread, I noticed that "Nim Forum Account Email Confirmation" was in the Spam folder.

2017-05-18 07:06:52
Thanks, we're working on a fix. 2017-05-18 09:07:04
I uploaded new zips. Hope this issue is solved now. 2017-05-18 11:08:02

I tested nim-0.17.0_x64.zip on Windows, it is working now

1. Download Nim 0.17.0 https://nim-lang.org/download/nim-0.17.0_x64.zip Extract to C:\nim

2. Download mingw https://nim-lang.org/download/mingw64-6.3.0.7z Extract to C:\mingw

3. Add C:\nim\bin and c:\mingw\bin to Path environment variable

4. Run C:\nim\finish.exe (This step is optional since I added C:\mingw\bin` to Path already)

5. Run "hello World" nim program

2017-05-18 12:20:01
I personally think that nim targetting C and C++ with GCC and Clang is a good thing. C and C++ are super portable languages that are supported on almost every platform. On top of this, we get to leverage the hundreds of thousands of hours of monumental effort by GCC and Clang contributors to Nim's advantage. We get all the GCC and Clang optimizations by default. I'm sure araq and the other contributors are great programmers, but a standalone Nim compiler would very likely never be as robust as GCC and Clang. Gcc has multiple decades of constant improvement behind it. A Nim standalone compiler can't hope to match that. 2017-05-19 15:41:27