Can D interface with Free Pascal?

Mike Parker via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Jan 29 20:11:07 PST 2016


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 at taylor-NE510:~/Projects/PASCAL$ nm libhello.so
> 0000000000003ac0 T SubStr
> taylor at 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/


More information about the Digitalmars-d-learn mailing list