Re: [fpc-pascal] libc and math.h on Linux

2018-02-02 Thread Adriaan van Os
Marco van de Voort wrote: In our previous episode, Adriaan van Os said: Long double is probably 10-byte extended, but verify that by compiling and running a small C program for your distro. I assume that the FPC clongdouble type has the right size ? Define "right". Well, a cxxx type is "rig

Re: [fpc-pascal] libc and math.h on Linux

2018-02-02 Thread Marco van de Voort
In our previous episode, Adriaan van Os said: > > Long double is probably 10-byte extended, but verify that by compiling and > > running a small C program for your distro. > > I assume that the FPC clongdouble type has the right size ? Define "right". > I checked on OS X (x86) where FPC longdoub

Re: [fpc-pascal] libc and math.h on Linux

2018-02-02 Thread Adriaan van Os
Marco van de Voort wrote: Long double is probably 10-byte extended, but verify that by compiling and running a small C program for your distro. I assume that the FPC clongdouble type has the right size ? I checked on OS X (x86) where FPC longdouble is 10-byte, FPC clongdouble is 16-byte and GC

Re: [fpc-pascal] libc and math.h on Linux

2018-02-02 Thread Marco van de Voort
In our previous episode, Adriaan van Os said: > I have to import the math.h libc functions listed here > . What is the > recommended way to do this for general Linux compatibility ? Not do this ? :-) > Simply declare them external ? Load

Re: [fpc-pascal] libc and math.h on Linux

2018-02-02 Thread Karoly Balogh (Charlie/SGR)
Hi, On Fri, 2 Feb 2018, Adriaan van Os wrote: > I have to import the math.h libc functions listed here > . What is the > recommended way to do this for general Linux compatibility ? Simply > declare them external ? Load them from libc dynami

[fpc-pascal] libc and math.h on Linux

2018-02-02 Thread Adriaan van Os
I have to import the math.h libc functions listed here . What is the recommended way to do this for general Linux compatibility ? Simply declare them external ? Load them from libc dynamically ? Anything else ? I know that the FPC runtime l