I had no success running these examples Nim invocation example from C- I installed nim using choosenim
- I used these commands
nim cc --app:staticLib --noMain fib.nim
gcc -o m -ldl -I$HOME/.cache/nim/fib_d -I$HOME/.choosenim/toolchains/nim-1.6.6/lib libfib.a maths.c
NOTE:
- I used libfib.a instead of libfib.nim.a because the later one was missing from the cache (and I think that's because there is missing from the first command)