[fpc-devel]Compile bug - cdecl; export; exports

Daniel / Tecnobyte tecnobyte at ulbrajp.com.br
Mon Dec 3 02:40:14 CET 2001


-----------------------------------------
library libtest;

function sum(x, y: integer): integer; cdecl; export;
begin
  sum := x + y;
end;

exports
  sum name 'sum';

end.
-----------------------------------------
This library compile in Windows, but it doesn't compile in Linux.    
    
I use FPC 1.04  

-----------------------------------------
Daniel Pereira Guimaraes
Brazil





More information about the fpc-devel mailing list