How to resolve “Unit JclCompression was compiled with a different version of sevenzip.IOutArchive”?

StackOverflow https://stackoverflow.com/questions/2572258

  •  24-09-2019
  •  | 
  •  

Question

There is already a similar question(link).The thing is I don't understand what unit I have to delete.

I have installed the latest JCL library and added 'JclCompression' to the uses list in a unit and I get the error: "Unit JclCompression was compiled with a different version of sevenzip.IOutArchive".

Please explain to me in a simpler way how to resolve the problem.

Thanks in advance!

Was it helpful?

Solution

What it means is that you have an outdated version of JCLCompression.DCU sitting around. The compiler tries to use a DCU first if it can find it, and then recompile from the PAS files if there's no DCU available or if the DCU is stale.. What this error means is that the DCU is stale and it's trying to rebuild from the source, but it can't find sevenzip.pas, which JclCompression uses. Try finding Sevenzip.pas and add it to your project's search path, or to Delphi's search path.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top