summary refs log tree commit diff stats
path: root/doc/backends.rst
diff options
context:
space:
mode:
authorDominik Picheta <dominikpicheta@googlemail.com>2018-11-27 22:44:31 +0000
committerGitHub <noreply@github.com>2018-11-27 22:44:31 +0000
commit8ff18c0fb9b4aeb04209f7c7869b28fceb934f5c (patch)
tree80e655cfcadc494acc49f758191f33febddab379 /doc/backends.rst
parent5b98afb8a8120b697fac625fd691f3484c328b23 (diff)
parentdace2a0999f568edca259a632946bf1a970a877d (diff)
downloadNim-8ff18c0fb9b4aeb04209f7c7869b28fceb934f5c.tar.gz
Merge pull request #9813 from yyyc514/fix_outdated_invoke_example
fix outdated example to invoke Nim from C
Diffstat (limited to 'doc/backends.rst')
-rw-r--r--doc/backends.rst2
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