>> Replacing all GetProcedureAdress() with dlsym() >> >> DOES THE TRICK ! ;-)
> Uhm, are you sure about this? --> https://github.com/fredvs/uos Try SimplePlayer example (all FreeBSD libraries are included in uos package) --> choose /sound/test.m4a --> IT WORKS ;-) > Could you add a "writeln(dlerror());" ate the "****INDICATED > POSITION****"? > Just curious about what is going on here... See what I noted in previous mail : GetProcedureAddress(hn, pchar('mp4ff_open_read'); writeln(dlerror()); ---> Result: Invalid shared object handle 0x2fb2800 > Why do you use "hn: Intege"hn: Integer" instead of "hn: TLibHandle" Excellent question... Because of... fpc... In fpc 64 bit unix : result of dynlibs.loadlibrary() is... a integer. And for fpc <> unix 64 bit : result is a TLibHandle. I agree it is strange. By the way, many thanks for your bright light Ewald. Fre;D ----- Many thanks ;-) -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Mangle-name-in-fpc-FreeBSD-tp5724528p5724599.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