[fpc-pascal] DLL and SO with Free Pascal
Jilani Khaldi
jilani.khaldi1 at virgilio.it
Sun Apr 9 15:34:29 CEST 2006
>It would be helpful if you could tell what exactly the problem is.
>
>But from first glance, you need at least to add {$mode objfpc} or {$mode delphi}
>so integer is 32-bit instead of 16 bit. Secondly, normally you should
>add a
>{$packrecords C}
>
>
Thank you very much Michael, you hint to add "{$packrecords C}" fixes
the problem.
Just curious. I tried:
SpaData = packed record
...
end;
instead of:
SpaData = record
...
end;
But it doesn't solve the problem.
jk
--
Jilani KHALDI
http://jkhaldi.oltrelinux.com
More information about the fpc-pascal
mailing list