I keep getting
ld: library not found for -lchaiscript_stdlib-5.3.1.so
clang: error: linker command failed with exit code 1 (use -v to see invocation)
When trying to link to a .so file.
I'm using this command:
clang++ Main.cpp -o foo -L./ -lchaiscript_stdlib-5.3.1.so
What am I doing wrong?
File libchaiscript_stdlib-5.3.1.so is in the same directory as file Main.cpp. I thought the -L./
would add the .so to the library search paths.