首页 > Windows开发 > 详细

delphi obj改linux下调用so

时间:2020-05-13 12:38:27      阅读:62      评论:0      收藏:0      [点我收藏+]

https://community.idera.com/developer-tools/programming-languages/f/delphi-language/72191/is-there-a-way-to-include-object-files-in-linux#Prerequisites
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.

delphi obj改linux下调用so

原文:https://www.cnblogs.com/marklove/p/12880723.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!