Re: Sourcecode refuses to compile-mysterious error

Posted by andre on October 06, 2009

In Reply to Sourcecode refuses to compile-mysterious error posted by laquack on September 16, 2009

: Hi,i kindly request your help compiling the following sourcecode

: htp://Boxstr.com/files/6013862_e2e6z/xClamAVServerSources.zip

: I want to use the DLL in a school project but everytime
: i try to compile i get the following errors

: [Hint] libClamav.pas(318): Value assigned to 'err' never used
: [Hint] libClamav.pas(314): Value assigned to 'LoadClamavDLL' never used
: [Error] ClamAVScannerU.pas(11): Undeclared identifier: 'IClamAVScanner'
: [Error] ClamAVScannerU.pas(93): Undeclared identifier: 'Class_ClamAVScanner'
: [Fatal Error] ClamAVServer.dpr(6): Could not compile used unit 'ClamAVScannerU.pas'

: Im new to delphi and not the author of the code and only want to use the compiled DLL
: A post with the corrected sourcecode will be great help
: Thanx in advance

---------
I tried the code in your zipfile. it does compile, but generates an error during linking.

It seems to me, the code would compile fine if I had the missing file.

I am using delphi version 2005. Maybe this is a version incompatibility?
---------

[Hint] libClamav.pas(318): H2077 Value assigned to 'err' never used
[Hint] libClamav.pas(314): H2077 Value assigned to 'LoadClamavDLL' never used
[Warning] ClamAVScannerU.pas(49): W1035 Return value of function 'TClamAVScanner.Init' might be undefined
[Warning] ClamAVScannerU.pas(61): W1035 Return value of function 'TClamAVScanner.Done' might be undefined
[Warning] ClamAVScannerU.pas(90): W1035 Return value of function 'TClamAVScanner.TestFile' might be undefined
[Error] E1026 File not found: 'ClamAVServer.TLB'


Related articles

       

Follow Ups