aboutsummaryrefslogtreecommitdiff
path: root/docs/c-interoperability.md
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-03-30 15:41:37 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-03-30 15:41:37 -0400
commit38d6189d4335bbcdc38f0c31cf769082b96f22fa (patch)
tree430c133eafe0284d0bc10e7571b42bbf02b34aca /docs/c-interoperability.md
parent494e4ef006cd66ee1d91ea23de9da085bec1e8db (diff)
Further support for .dylib files on mac by changing syntax for library
imports to `use -lfoo` instead of `use foo.so`
Diffstat (limited to 'docs/c-interoperability.md')
-rw-r--r--docs/c-interoperability.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/c-interoperability.md b/docs/c-interoperability.md
index 3328b39d..3c5bbff1 100644
--- a/docs/c-interoperability.md
+++ b/docs/c-interoperability.md
@@ -6,10 +6,10 @@ make this possible, there are a few tools available.
## Using C Libraries
-In order to link against a compiled shared library, you can use `use libfoo.so`
-to cause Tomo to add `-l:libfoo.so` to the linker flags when compiling your
-final executable. You can also use `use <foo.h>` or `use ./foo.h` to cause Tomo
-to insert a corresponding `#include` when compiling your code.
+In order to link against a compiled shared library, you can use `use -lfoo` to
+cause Tomo to add `-lfoo` to the linker flags when compiling your final
+executable. You can also use `use <foo.h>` or `use ./foo.h` to cause Tomo to
+insert a corresponding `#include` when compiling your code.
You can also `use ./foo.c` or `use ./foo.S` to use C or assembly source files
from inside a Tomo source file.