nim cpp --compileOnly --nimcache:. file.nim Run
generates the C++ files in the current directory (suffixed with `.nim.cpp`). To compile them you'll need `nimbase.h` which can be found in the path where Nim's installed.
nim cpp --compileOnly --nimcache:. file.nim Run
generates the C++ files in the current directory (suffixed with `.nim.cpp`). To compile them you'll need `nimbase.h` which can be found in the path where Nim's installed.