Author Topic: Pascal and C - C++ for Android  (Read 1045 times)


  • Newbie
  • Posts: 1
Pascal and C - C++ for Android
« on: November 17, 2019, 11:06:12 pm »
Hi there people! New guy here, greetings from Argentina!

I am also very new to Pascal and programming in general, so if you could please ELI5 this for me:

I'm planning on writing a Pascal wrapper for several libraries on C - C++. I know they can be compiled together using GCC (, and I also know FPC can compile for Android.

What I do not know is whether both things can be done at the same time. Could I write a Pascal + C/C++ application and compile it for Android, among other targets?

Thank you very much in advance!


  • Hero Member
  • *****
  • Posts: 1339
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Pascal and C - C++ for Android
« Reply #1 on: November 18, 2019, 01:38:48 am »
Lazarus 2, Linux (and reluctantly Win10, OSX)
My Project -


  • Hero Member
  • *****
  • Posts: 4002
  • Leandro Diaz
Re: Pascal and C - C++ for Android
« Reply #2 on: November 18, 2019, 03:21:24 am »
So you create a pascal header for a C library, then make the pascal code a library to use with Android Studio?

Or you will compile your android application with Lazarus?

If is the second, then I think it will be more easy, since you don't need to compile a .so for Android Studio and debug it, you will debug it with Lazarus.

"Dll inception", a dll requiring another dll, never did something like that so I can't say. - My Website :) -  Download LazPaint


TinyPortal © 2005-2018