[fpc-pascal] Mangle name in fpc-FreeBSD ?
fiens at hotmail.com
Sat Mar 19 20:29:10 CET 2016
> dlopen, dlsym and dlerror are *functions*, not console commands. Well, I
> never tried the latter, but it appears they are not on your system ;-)
> Now, I don't know where exactly these functions are declared (in which
> unit, that is), but for debugging purposes, just add
> Function dlopen(filename: PChar; flags: cint): Pointer; cdecl;
> Function dlclose(handle: Pointer): cint; cdecl; external;
> Function dlsym(handle: Pointer; Name: PChar): Pointer; cdecl; external;
> Function dlerror: PChar; cdecl; external;
> Somewhere in your code before you call them.
Ooops, thanks for answer but now I am completely loosed... ;-(
So those functions can be used in fpc code?
If so, must a library be loaded to access that functions (and what library)?
Or are those functions defined in a fpc unit ?
I am in the dark.
Many thanks ;-)
View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Mangle-name-in-fpc-FreeBSD-tp5724528p5724581.html
Sent from the Free Pascal - General mailing list archive at Nabble.com.
More information about the fpc-pascal