parent
3e2d8c1c53
commit
dace2a0999
1 changed files with 1 additions and 1 deletions
|
|
@ -268,7 +268,7 @@ form the Nim code, then link them into a static binary along your main C
|
||||||
program::
|
program::
|
||||||
|
|
||||||
$ nim c --noMain --noLinking --header:fib.h fib.nim
|
$ 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
|
The first command runs the Nim compiler with three special options to avoid
|
||||||
generating a ``main()`` function in the generated files, avoid linking the
|
generating a ``main()`` function in the generated files, avoid linking the
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue