[fpc-pascal] linking to a shared library (linux platform)

Jonas Maebe jonas.maebe at elis.ugent.be
Wed Jan 4 09:15:46 CET 2006

On 03 Jan 2006, at 23:58, Alain Michaud wrote:

> plPlotterParams * pl_newplparams (void)
> The function "pl_newplparams" is supposed create a structure (record)
> and then return some "pointer" to it. The user is not supposed to  
> access
> this data directly, so there is NO reference to "plPlotterParams"  
> al all
> in the header files (plot.h)! How does the C compiler knows what
> plPlotterParams is then?

It is in a header file, otherwise the C compiler will not compile it  
either. According to https://bugzilla.redhat.com/bugzilla/ 
attachment.cgi?id=3380, it may be defined like this in plotter.h:

typedef struct plPlotterParamsStruct
   int (*setplparam) (struct plPlotterParamsStruct *_plotter_params,  
const char *parameter, void * value);
   void * plparams[33];


More information about the fpc-pascal mailing list