@@ -15,7 +15,7 @@ Kotlin/Native uses an automated memory management scheme that is similar to what
15
15
16
16
## How do I create a shared library?
17
17
18
- Use the ` -produce dynamic ` compiler switch, or ` binaries.sharedLib() ` in Gradle.
18
+ Use the ` -produce dynamic ` compiler option or ` binaries.sharedLib() ` in your Gradle build file:
19
19
20
20
``` kotlin
21
21
kotlin {
@@ -25,12 +25,14 @@ kotlin {
25
25
}
26
26
```
27
27
28
- It will produce a platform-specific shared object (` .so ` on Linux, ` .dylib ` on macOS, and ` .dll ` on Windows targets) and a
28
+ It produces a platform-specific shared object (` .so ` on Linux, ` .dylib ` on macOS, and ` .dll ` on Windows targets) and a
29
29
C language header, allowing the use of all public APIs available in your Kotlin/Native program from C/C++ code.
30
30
31
+ [ Complete the Kotlin/Native as a dynamic library tutorial] ( native-dynamic-libraries.md )
32
+
31
33
## How do I create a static library or an object file?
32
34
33
- Use the ` -produce static ` compiler switch, or ` binaries.staticLib() ` in Gradle.
35
+ Use the ` -produce static ` compiler option or ` binaries.staticLib() ` in your Gradle build file:
34
36
35
37
``` kotlin
36
38
kotlin {
@@ -40,7 +42,7 @@ kotlin {
40
42
}
41
43
```
42
44
43
- It will produce a platform-specific static object (` .a ` library format) and a C language header, allowing you to
45
+ It produces a platform-specific static object (` .a ` library format) and a C language header, allowing you to
44
46
use all the public APIs available in your Kotlin/Native program from C/C++ code.
45
47
46
48
## How do I run Kotlin/Native behind a corporate proxy?
0 commit comments