简体   繁体   中英

'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?

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

Additionally check compiler options of YOUR project. Some AlphaSkins files go with source code, another - as DCU only. Source code may be rebuilt, but DCUs require standard compiler options, ie (particulary) "Huge strings" and "Record alignment to 8".

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM