[fpc-pascal] Problem with dynamic libraries

Adrian Veith adrian at veith-system.de
Thu Jun 14 13:04:55 CEST 2007


no - that was not the problem. I have my linux running in a coLinux 
session and it seems that the linker fails, when the file is in a 
windows drive, even as root. other programms don't have problems to read 
or write to this drive.

but there is still a strange problem with the dynamic library:

the code compiles with fpc fails, when one of the units have some 
initialization code. When I move this code to an extra procedure and 
call it later it works.

Is there a difference, when the initialization code of an dll is called 
between delphi and fpc ?

thanks,

Adrian.

Leonardo M. Ramé schrieb:
> Replace procedure HalloWelt; with
>
> procedure HalloWelt; cdecl; 
>
>   
>> procedure HalloWelt;
>> begin
>> end;
>>
>>     
>
>
> Leonardo M. Ramé
> http://leonardorame.blogspot.com
>
>
>        
> ____________________________________________________________________________________
> Pinpoint customers who are looking for what you sell. 
> http://searchmarketing.yahoo.com/
> _______________________________________________
> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>
>   



More information about the fpc-pascal mailing list