Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

'Compiled with different version` error when compiling library

I downloaded the new beta version of AlphaSkins Lite (7.44). I uninstalled the older version that i had problems with... I opened the "acntD7_R.dpk" and it compiled. Then I opened "acntD7.dpk" and got a compile error:

[Fatal Error] acntD7.dpk(47): Unit sInternalSkins was compiled with a different version  of sButton.TsButton 

I tried to erase the BPL files manually and tried again but got the same error message again.

Please what i am doing wrong?

like image 311
azrael11 Avatar asked Nov 13 '22 21:11

azrael11


1 Answers

Try the following:

  1. Search your computer for a file named "sInternalSkins.pas". Be sure, the path of this file is included as a path in your delphi library pathes. If not, include this path in delphi options. If you do not have the *.pas, you have to find the dcu-File that was compiled with your delphi compiler version. Maybe you have the correct dcu but your search-path points to a wrong path with the wrong version of the dcu. Different versions of DCU's are often stored in different directories, one for each delphi version, if source is not part of the component. (I personally never use components without source...)

  2. If you have the *.pas: search your computer for all files named "sInternalSkins.dcu" and delete them all.

  3. Rebuild your package acntD7.dpk

like image 173
Andreas Avatar answered Dec 05 '22 20:12

Andreas