gforth
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Android C FFI / libtool


From: Bernd Paysan
Subject: Re: Android C FFI / libtool
Date: Sun, 11 Feb 2024 23:22:57 +0100

Am Sonntag, 11. Februar 2024, 21:30:20 CET schrieb shtps via Gforth discussion 
and announcements:
> Hi,
> 
> Out of curiosity I'm porting a small Forth application to Gforth on Android
> and I'm wondering how the C FFI is handled and if it's at all expected to
> work on Android. I've tried running the following but I get "libtool
> compile failed". It works just fine on my desktop installation.
> 
> c-library mylib-lib
> \c int test() { return 1; }
> c-function test test -- n
> end-c-library
> 
> test .
> 
> Is libtool expected to work or do I need to set it up somehow?

Yes, it is expected to work, and on Android, it doesn't — only cross 
compilation works.

-- 
Bernd Paysan
"If you want it done right, you have to do it yourself"
net2o id: kQusJzA;7*?t=uy@X}1GWr!+0qqp_Cn176t4(dQ*
https://net2o.de/

Attachment: signature.asc
Description: This is a digitally signed message part.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]