kotlinforandroid
05/15/2024, 3:46 PMSystem.load
. But the call to Linker.nativeLinker().defaultLookup().find("my_method_name")
returns NoSuchElementException
. Shouldn't this return the address of the library I wrote? I am sure that the library is loaded correctly before I use any method of java.lang.foreign
.Oleg Yukhnevich
05/15/2024, 3:50 PMSymbolLookup.loaderLookup().or(Linker.nativeLinker().defaultLookup()).find("my_method_name")
Linker.nativeLinker().defaultLookup()
will use only system-wide
available libraries
while loaderLookup
will also use libraries loaded via System.load
during lookupOleg Yukhnevich
05/15/2024, 3:50 PMkotlinforandroid
05/15/2024, 6:32 PMOleg Yukhnevich
05/15/2024, 9:00 PMkotlinlang
analog for Java/JDK
I believe it's fine to discuss such questions if they are somehow Kotlin related