On Saturday, 30 January 2016 at 03:43:59 UTC, Taylor Hillegeist wrote:

Working through a simple example. I tried the cdecl option but for some reason i can compile but when i run my Gethello it cant find the shared library in the same folder?

taylor@taylor-NE510:~/Projects/PASCAL$ nm libhello.so
0000000000003ac0 T SubStr
taylor@taylor-NE510:~/Projects/PASCAL$ ./Gethello
./Gethello: error while loading shared libraries: libhello.so: cannot open shared object file: No such file or directory


The binary's directory is not on the system search path by default on Linux. This page [1] shows three possible solutions.

[1] http://www.aimlesslygoingforward.com/2014/01/19/bundling-shared-libraries-on-linux/

Reply via email to