未验证 提交 f92152bb 编写于 作者: B b-k 提交者: GitHub

Merge pull request #6 from viccuad/master

Fix dynamic.c segmentation fault
......@@ -27,7 +27,7 @@ void compile_and_run(){
return;
}
void *handle = dlopen("fn.so", RTLD_LAZY);
void *handle = dlopen("./fn.so", RTLD_LAZY);
if (!handle) printf("Failed to load fn.so: %s\n", dlerror());
typedef double (*fn_type)(double);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册