<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<font face="Helvetica, Arial, sans-serif">Hi Folks.<br>
<br>
Moving some units from Delphi to FPC-Lazarus, the FPC compiler
tells me something I do not understand: <br>
Platform is Linux_x64, Lazarus 1.0.8 FPC 2.6.2, gtk2<br>
</font><font face="Helvetica, Arial, sans-serif"><font
face="Helvetica, Arial, sans-serif">Project options have been
set to Obj Pascal (mdelphi removed)<br>
<br>
</font>interface<br>
uses ...<br>
<br>
[324] function OpenLongFileName(const ALongFileName: String;
const SharingMode: Integer): THandle;<br>
<br>
implementation<br>
<br>
uses ...<br>
<br>
function OpenLongFileName(const ALongFileName: String; const
SharingMode: Integer): THandle;<br>
begin<br>
if not FileExists(ALongFileName) then begin<br>
with TStringList.Create do try<br>
Clear;<br>
SaveToFile(ALongFileName);<br>
finally<br>
Free<br>
end;<br>
end;<br>
Result := FileCreate(ALongFileName, fmOpenReadWrite,
SharingMode);<br>
end;<br>
<br>
compiler says:<br>
<br>
clamav3.pas(324,12) Error: Forward declaration not solved
"OpenLongFileName(const AnsiString,const LongInt):QWord;"<br>
<br>
Any comment ?<br>
<br>
Thanks,<br>
<br>
Antonio.<br>
</font>
</body>
</html>