Re: [fpc-pascal] static binding to C shared library (linux)

2006-01-23 Thread Alain Michaud
Hi, Thank you to you all. After I wrote the declaration just like given below, I had the library linked to my pascal program, and did not even need to spend the week end on it! :) Thanks again to you all. Alain Michaud On Tue, 2006-01-17 at 10:34 +0200, Гено Рупски wrote: > В пн, 2006-01-16

Re: [fpc-pascal] static binding to C shared library (linux)

2006-01-17 Thread Гено Рупски
В пн, 2006-01-16 в 23:07 -0500, Alain Michaud написа: > This makes me think that it has to do with the parameters. This one has > three. Unfortunately there is no other 'simple' function in the > library: > > int pl_setplparam (plPlotterParams * plotter_params, const char > *parameter, void *valu

Re: [fpc-pascal] static binding to C shared library (linux)

2006-01-16 Thread Tony Pelton
On 1/17/06, Alain Michaud <[EMAIL PROTECTED]> wrote: > Hi, > > thank-you for the reply. > > 1 - I compile the C library myself. I even use it from a C program > compiled by me. Therefore for the C part, I am sure that everything is > OK. I also know that the path, and all that works. ok. > > I ca

Re: [fpc-pascal] static binding to C shared library (linux)

2006-01-16 Thread Alain Michaud
Hi, thank-you for the reply. 1 - I compile the C library myself. I even use it from a C program compiled by me. Therefore for the C part, I am sure that everything is OK. I also know that the path, and all that works. I can also access a string constant (the version number) from the library

Re: [fpc-pascal] static binding to C shared library (linux)

2006-01-16 Thread Tony Pelton
take what i have to say with a HUGE grain of salt because i have no idea what i'm talking about. On 1/16/06, Alain Michaud <[EMAIL PROTECTED]> wrote: > Hi, > > I would apreciate if someone could give me some advice please. In this > example: > > cfunction = function(theparameter:cint):cint;cdecl;