Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2009-12

Make Pascal library usable for C (on Linux)

3 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Matthias Klumpp

Hello!
I write C-headers for a library written in Pascal at time, to make it usable within C applications.
On Linux, the libtool-program (part of GNU autotools) generates the necessary files for C-compilers to link against the library (libxyz.la, libxyz.a, libxyz.pc)
How can I use libtool for Pascal libraries or is there an alternative way to get the libtool-comfort with Pascal?
Kind regards
Matthias Klumpp

Reply by email

Jonas Maebe
to Matthias Klumpp
Matthias Klumpp wrote 9 lines
I write C-headers for a library written in Pascal at time, to make it usable within C applications. On Linux, the libtool-program (part of GNU autotools) generates the necessary files for C-compilers to link against the library (libxyz.la, libxyz.a, libxyz.pc) How can I use libtool for Pascal libraries or is there an alternative way to get the libtool-comfort with Pascal?

I think you better ask that on a libtool mailing list. I have no idea what libtool requires from a compiler, how it determines what to put in those .la and .pc files, etc. There is no explicit libtool support in FPC, and I've never seen any patches that add it.

Jonas

Reply by email

Matthias Klumpp
to Jonas Maebe
Jonas Maebe wrote
I think you better ask that on a libtool mailing list. I have no idea what libtool requires from a compiler, how it determines what to put in those .la and .pc files, etc. There is no explicit libtool support in FPC, and I've never seen any patches that add it.

Okay, then I'll try to write the files by myself.
Has someone experience in using Pascal libraries with C on Linux? I will just write some code now and try if it works. Thanks!
Matthias Klumpp

Reply by email