Hi, what do you mean convert to pure C++ code? Do you mean Nim -> C++ translation? nim cpp <source_file>.nim
Then have a look at https://nim-lang.org/docs/nimc.html#compiler-usage-generated-c-code-directory if you want to see the generated C++
Please note that you asked two unrelated questions, if you want to help people answer you, it would be better to make two separate questions next time.
nim cpp --compileOnly --nimcache:. file.nim
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.