码迷,mamicode.com
首页 > 移动开发 > 详细

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

时间:2017-05-15 00:41:57      阅读:469      评论:0      收藏:0      [点我收藏+]

标签:代码   end   bar   之间   with   cti   www   byte   prot   

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.
技术分享

http://www.cnblogs.com/hezihang/p/5289644.html

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

标签:代码   end   bar   之间   with   cti   www   byte   prot   

原文地址:http://www.cnblogs.com/findumars/p/6854474.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!