diff --git a/dynamic.c b/dynamic.c index 84d604af7bf2052f2e10b41cfacb36ecc2030a84..16e8338c33e8b2c55d8ce9937d5920bb1d3db61a 100644 --- a/dynamic.c +++ b/dynamic.c @@ -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);