Hello. Fpc library compiled on freeBSD are unusable. Python, Java and even fpc applications can not use them...
Look at that (works with Linux): => >> The fpc library :=> //////////////// library test ; {$mode objfpc} procedure fpctest(); begin writeln('OK, it works...'); end; exports fpctest name 'fpctest'; begin end. //////////////// >> The Python script :=> ////////////// #file fp_test.py import string import os,sys,platform dia = sys.path[0] from ctypes import* fp_lib = "libtest.so" fppathdll = os.path.join( dia , fp_lib) fpdll = cdll.LoadLibrary(fppathdll) fpdll.fpctest //////////////// Run the script >> python fp_test.py => same error if library used by Python, Java or fpc applications: > ~/libtest.so: Undefined symbol > "operatingsystem_parameter_envp" How can i help to fix that ? Thanks. Fred. ----- Many thanks ;-) -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/fpc-Libraries-do-not-work-in-freeBSD-tp5719870.html Sent from the Free Pascal - General mailing list archive at Nabble.com. _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal