diff options
author | Josh Goebel <me@joshgoebel.com> | 2018-11-27 15:44:03 -0500 |
---|---|---|
committer | Josh Goebel <me@joshgoebel.com> | 2018-11-27 15:44:03 -0500 |
commit | dace2a0999f568edca259a632946bf1a970a877d (patch) | |
tree | d7362b40f13d11693c2f3673c78e16c9e92adf71 /doc/backends.rst | |
parent | 3e2d8c1c535d75d3451ce016e7b54cb609c01e45 (diff) | |
download | Nim-dace2a0999f568edca259a632946bf1a970a877d.tar.gz |
fix outdated example to invoke Nim from C
- resolves #8139
Diffstat (limited to 'doc/backends.rst')
-rw-r--r-- | doc/backends.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/backends.rst b/doc/backends.rst index ef30971c9..a85b39e5e 100644 --- a/doc/backends.rst +++ b/doc/backends.rst @@ -268,7 +268,7 @@ form the Nim code, then link them into a static binary along your main C program:: $ nim c --noMain --noLinking --header:fib.h fib.nim - $ gcc -o m -Inimcache -Ipath/to/nim/lib nimcache/*.c maths.c + $ gcc -o m -I$HOME/.cache/nim/fib_d -Ipath/to/nim/lib $HOME/.cache/nim/fib_d/*.c maths.c The first command runs the Nim compiler with three special options to avoid generating a ``main()`` function in the generated files, avoid linking the |