-
-
Notifications
You must be signed in to change notification settings - Fork 9
Native Linking
IsaacShelton edited this page Mar 21, 2022
·
1 revision
There are a few ways of linking to native objects and libraries.
-
-l
- Link against library in linking path -
-L
- Add directory to linking path
-
foreign 'libmylibrary.o'
- Link against object file -
foreign 'libmylibrary.a'
- Link against static library -
foreign 'libmylibrary.so'
- Link against dynamic library -
foreign 'libmylibrary.dll'
- Link against dynamic library -
foreign 'libmylibrary.dylib'
- Link against dynamic library -
foreign 'MyLibrary' framework
- Link against MacOS framework -
foreign 'mylibrary' library
- Link against library in linking path