鸿 网 互 联 www.68idc.cn

当前位置 : 服务器租用 > 编程语言开发 > delphi > >

Delphi XE10在 Android下调用静态库a文件

来源:互联网 作者:佚名 时间:2017-09-08 09:53
Delphi Seatle can link Delphi project with Static library files(*.a): 1.at Delphi IDE, Add the "*.a" file Path to Library Path: a. Tools Menu b.Options c.Delphi Options - Library - Selected platform "Android" d.Library path - Add the path

Delphi Seatle can link Delphi project with Static library files(*.a):

 

1.at Delphi IDE, Add the "*.a" file Path to Library Path:

    a. Tools Menu

    b.Options 

    c.Delphi Options -> Library -> Selected platform "Android"

    d.Library path -> Add the path of *.a file

    e.OK

2.Here is an unit I made: utLibTest.pas is linked with libtest.a

unit utLibTest;

{$link libtest.a}

interface

const
  libproj='libtest.a';

(* procedure prototypes *)

//将lon,2Pi周期内转换到-pi到pi之间
function adjlon(lon:Double):double;cdecl;

//将度分秒字符串转换成弧度,iss为字符串,rss为结束字符指针
function dmstor(iss:PByte; var rss:PByte):double;cdecl;


implementation


function adjlon; external libproj;
function dmstor; external libproj;

end.

 

网友评论
<