We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cdfe28f commit 094ea2fCopy full SHA for 094ea2f
README.md
@@ -81,6 +81,19 @@ end
81
82
Otherwise, you can inline the dir to `deps/fine/include`.
83
84
+> #### Symbol visibility {: .info}
85
+>
86
+> When using GCC and Clang it is recommended to compile with
87
+> `-fvisibility=hidden`. This flag hides symbols in your NIF shared
88
+> library, which prevents from symbol clashes with other NIF libraries.
89
+> This is required when multiple NIF libraries use Fine, otherwise
90
+> loading the libraries fails.
91
92
+> ```shell
93
+> # GCC/Clang (Makefile)
94
+> CPPFLAGS += -fvisibility=hidden
95
+> ```
96
+
97
## Usage
98
99
A minimal NIF adding two numbers can be implemented like so:
0 commit comments