[fpc-pascal] Calling fpc libraries from other languages on freebsd/amd64 (bis)

fredvs fiens at hotmail.com
Sun Aug 3 01:36:26 CEST 2014

>> Is it solved in trunk fpc version ?
>Why don't you try? 

I have install a brand new trunk version of fpc 2.7.1 64 bit on freeBSD 10
64 bit.

The library was successfully compiled.

But, sadly, i get hat error message while trying to run a java application
who use the library (that java application works in linux) :=>

[fred at pcbsd-fred] ~/fpGUIlib/demos/demo_Java% java -Djava.library.path=./

Exception in thread "main" java.lang.UnsatisfiedLinkError:
/usr/home/fred/fpGUIlib/demos/demo_Java/libfpgui.so: Undefined symbol
        at java.lang.ClassLoader$NativeLibrary.load(Native Method)
        at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1929)
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1847)
        at java.lang.Runtime.loadLibrary0(Runtime.java:870)
        at java.lang.System.loadLibrary(System.java:1119)
        at fpg_demo.main(fpg_demo.java:148)


So, fpc 2.7.1 does not do the trick...

What can i do ?


Many thanks ;-)
View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Calling-fpc-libraries-from-other-languages-on-freebsd-amd64-bis-tp5719667p5719861.html
Sent from the Free Pascal - General mailing list archive at Nabble.com.

More information about the fpc-pascal mailing list