[fpc-pascal] External library name
Adriaan van Os
adriaan at adriaan.biz
Sun Jan 5 05:53:36 CET 2025
Hairy Pixels via fpc-pascal wrote:
> I see this pattern in C translated header often but I’ve honestly never
> understood it entirely.
>
> Why does this “cDllName" need to be added to every single function which
> you could just use {$linklib xxxx}?
This is a habit from the WIndows and Delphi world. In a one-levell namespace on MacOS, the dll name
is superflouous. Note that ObjC symbols are always global ,which implies a one-level namespace.
Regards,
Adriaan van Os
More information about the fpc-pascal
mailing list