这是我的代码:
#include <git2.h>
#include <dlfcn.h>
int main(void) {
void *libgit2;
int (*racket_git_clone)();
git_repository **out;
const git_clone_options *options;
libgit2 = dlopen("libgit2.so", RTLD_LAZY);
racket_git_clone = dlsym(libgit2, "git_clone");
(*racket_git_clone)(out, "https://github.com/lehitoskin/racketball", "/home/maxwell", options);
return 0;
}
不知道从哪里开始。有任何想法吗?