Fixed compilation command examples
Fabio Cevasco h3rald@h3rald.com
Mon, 30 Oct 2017 22:44:23 +0100
1 files changed,
2 insertions(+),
2 deletions(-)
M
site/contents/_includes/_learn-extending.md
→
site/contents/_includes/_learn-extending.md
@@ -130,12 +130,12 @@
You can compile the following library by running the following command: > %min-terminal% -> [$](class:prompt) nim c --app:lib -d:release --noMain dyntest.nim +> [$](class:prompt) nim c \-\-app:lib -d:release \-\-noMain dyntest.nim If you are using [clang](https://clang.llvm.org/) to compile Nim code, you may need to run the following command instead: > %min-terminal% -> [$](class:prompt) nim c --app:lib -d:release --noMain -l:"-undefined dynamic\_lookup" dyntest.nim +> [$](class:prompt) nim c \-\-app:lib -d:release \-\-noMain -l:\"-undefined dynamic\_lookup\" dyntest.nim Now you should have a `libdyntest.so|dyn|dll` file. To make min load it and link it automatically when it starts, just run: