[fpc-devel] Windows 32bit - FPC 3.0.4 Gets an Error - but not on Linux or Mac...
    Cyrax 
    evvke at hotmail.com
       
    Sun Sep 29 17:20:08 CEST 2019
    
    
  
On 28/09/2019 23:52, Ozz Nixon wrote:
> It's a CDECL thing... :-(
> 
> Disabled Using_CDECL, and now the pointer passes to/from the imported
> functions. (Florian/Jonas/Michael - is this an expected issue on Windows?)
> 
[clip]
By default, Windows uses stdcall calling convention when calling 
externally defined subroutines in dynamic link libraries. It depends 
also if the dynamic link library uses stdcall calling convention, too.
Other platforms uses cdecl (unix/linux et al).
In your case it may be pascal default one calling convetion.
    
    
More information about the fpc-devel
mailing list