delphi obj改linux下调用so
I have a windows compatible unit in delphi where .obj files are included eg:
{$L SSL_ITP.OBJ}
And the functions calls like:
function I_init(Number : longint) : integer; pascal;
function I_init; external;
To compile the code in Linux how to add the obj file ?
I tried to create .so file for the same SSL_ITP.c file and then including like:
function I_init(Number : longint) : integer; cdecl ; external 'ssl_itp.so';
Is there any other way to include directly like how it is included in windows.