Skip to content

Commit 33ed7f7

Browse files
authored
Merge pull request #246 from graalvm/ls/fix
Update Build a Shared Library with GraalVM Native Image Demo README.
2 parents 0a06b63 + 5df2eac commit 33ed7f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

native-shared-library/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ To export any other Java method:
7979
* Annotate the method with `@CEntryPoint` (`org.graalvm.nativeimage.c.function.CEntryPoint`).
8080
* Make one of the method's parameters of type `IsolateThread` or `Isolate`, for example, the first parameter (`org.graalvm.nativeimage.IsolateThread`) in the method below. This parameter provides the current thread's execution context for the call.
8181
* Restrict your parameter and return types to non-object types. These are Java primitive types including pointers, from the `org.graalvm.nativeimage.c.type` package.
82-
* Provide a unique name for the method. If you give two exposed methods the same name, the `native-image` builder will fail with the `duplicate symbol` message. If you do not specify the name in the annotation, you must provide the `-H:Name=libraryName` flag at build time.
82+
* Provide a unique name for the method. If you give two exposed methods the same name, the `native-image` builder will fail with the `duplicate symbol` message. If you do not specify the name in the annotation, you must provide the `-o libraryName` flag at build time.
8383
8484
Below is an example of an **entrypoint** method:
8585
```java

0 commit comments

Comments
 (0)