[fpc-devel] Building a static library

2014-08-26 Thread Sergio Flores
Let's start this email by saying that I know perfectly that FPC does not support static libraries, I read all I could find about it. However most reasons talk about that there would be problems if someone tried to use two fpc static libs together because of duplicated symbols. In my case I want

Re: [fpc-devel] Building a static library

2014-08-26 Thread Jonas Maebe
On 26/08/14 22:47, Sergio Flores wrote: So I did create my own static library by gathering all .o files from FPC into a .a file. I wrote a .h header and added the static lib into a Xcode Objective-C project. Ok, it compiles and links correctly. It calls some of the pascal functions correctly.

Re: [fpc-devel] Building a static library

2014-08-26 Thread Vsevolod Alekseyev
I've got a static FPC library on iOS that works fine. Don't pass strings back and forth, pass PChar's. Pointer-to-records are OK, too, but I'd think twice regarding objects. On 8/26/2014 4:47 PM, Sergio Flores wrote: Let's start this email by saying that I know perfectly that FPC does not