You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@CLibrary(value = "test1", requireStatic = true)
public class HelloWorld {
@CLibrary(value = "test")
public static void main(String[] args) {
}
@CEntryPoint(name="addJ")
static int addJ(IsolateThread thread, int a, int b) {
return a+b;
}
@CEntryPoint(name="subtractJ")
static int subtractJ( IsolateThread thread, int a, int b) { return a-b; }
}
The linker does try to link test, but not test1
The text was updated successfully, but these errors were encountered:
davecramer
changed the title
Is it possible to add an object file when creating a shared library
CLibrary annotation with requireStatic doesn't include library
Jun 18, 2022
Hi, Thank you for reporting this, could you please share what version of GraalVM you're using? what OS you're using? and the command used to reproduce this issue? Thank you
Sorry for this super late response, I believe you shouldn't use 2 CLibrary annotations with different library names. Two annotations means you are linking two different libraries. In this case, test1 is linked statically and test is linked dynamically.
With the following code
The linker does try to link test, but not test1
The text was updated successfully, but these errors were encountered: