Re: [fpc-pascal] Static linking to C library on Linux

2019-11-27 Thread Jonas Maebe
On 27/11/2019 21:27, Ryan Joseph via fpc-pascal wrote: >> On Nov 27, 2019, at 2:22 PM, Jonas Maebe wrote: >> >> There is no tool that can show this, because a static library is just a >> collection of random object files. It does not contain any metadata >> about where these symbols are supposed

Re: [fpc-pascal] Static linking to C library on Linux

2019-11-27 Thread Ryan Joseph via fpc-pascal
> On Nov 27, 2019, at 2:22 PM, Jonas Maebe wrote: > > There is no tool that can show this, because a static library is just a > collection of random object files. It does not contain any metadata > about where these symbols are supposed to come from (and they could o, > fact come from

Re: [fpc-pascal] Static linking to C library on Linux

2019-11-27 Thread Jonas Maebe
On 27/11/2019 17:59, Ryan Joseph via fpc-pascal wrote: > how can I do this for static libraries on Linux? There is no tool that can show this, because a static library is just a collection of random object files. It does not contain any metadata about where these symbols are supposed to come from

Re: [fpc-pascal] Static linking to C library on Linux

2019-11-27 Thread Karoly Balogh (Charlie/SGR)
Hi, On Wed, 27 Nov 2019, Ryan Joseph via fpc-pascal wrote: > > On Nov 27, 2019, at 11:25 AM, Karoly Balogh (Charlie/SGR) > > wrote: > > > > Yes. By Default, FPC doesn't link against libc on Linux by default, only > > when some more advanced things, say, threading is used. To the contrary on >

Re: [fpc-pascal] Static linking to C library on Linux

2019-11-27 Thread Ryan Joseph via fpc-pascal
> On Nov 27, 2019, at 11:25 AM, Karoly Balogh (Charlie/SGR) > wrote: > > Yes. By Default, FPC doesn't link against libc on Linux by default, only > when some more advanced things, say, threading is used. To the contrary on > Darwin (macOS), we always link against libc. There comes your

Re: [fpc-pascal] Static linking to C library on Linux

2019-11-27 Thread Michael Van Canneyt
On Wed, 27 Nov 2019, Ryan Joseph via fpc-pascal wrote: I'm trying to link to a static library (built from Python sources) in Pascal and having troubles on Linux. On Mac where I have experience I successfully link and every works as expected but on Linux I get slews of linker errors in what

Re: [fpc-pascal] Static linking to C library on Linux

2019-11-27 Thread Karoly Balogh (Charlie/SGR)
Hi, On Wed, 27 Nov 2019, Ryan Joseph via fpc-pascal wrote: > I'm trying to link to a static library (built from Python sources) in > Pascal and having troubles on Linux. On Mac where I have experience I > successfully link and every works as expected but on Linux I get slews > of linker errors

[fpc-pascal] Static linking to C library on Linux

2019-11-27 Thread Ryan Joseph via fpc-pascal
I'm trying to link to a static library (built from Python sources) in Pascal and having troubles on Linux. On Mac where I have experience I successfully link and every works as expected but on Linux I get slews of linker errors in what appear to be standard C library functions. For example: