我使用JNR并试图传递一个回调函数与下面的C-相当于签名: int fn(void const*, void const**, void**)
到一些C函数。我宣布嵌套在JNR库接口的Java端作为回调: public static interface Fn {
@Delegate public int call(Pointer a, Pointer[] b, Pointer[] c
我有下面的C代码: #include <stdio.h>
struct Second {
int a_number;
};
struct Top {
struct Second second;
};
void lets_go(struct Top *top) {
printf("The number is %d\n", top->second.a_nu
此问题可能与this以及其他一些UnsatisfiedLinkError问题有关。 我试图运行下面的代码。 import jnr.ffi.LibraryLoader;
import jnr.ffi.types.pid_t;
/**
* Gets the process ID of the current process, and that of its parent.
*/
publi