[DCC 致命的エラー] xxxx.pas(26): F2051 ユニット pngimage は異なるバージョンの Graphics.TGraphic.Equals によりコンパイルされています
英文的舉例(網上搜的)
[DCC Error] XXXX.pas(7): F2051 Unit IdThread was compiled with a different version of Classes.TThread.Synchronize
問題主要在pngimage,搜索時發現 其路徑在D:\Program Files\CodeGear\RAD Studio\6.0\source\Win32\vcl\Imaging\PNGImage\pngimage.pas
而我在Tools/Options,Environment Options/Delphi Options/Library - Win32的Library Path里加了個 d:\program files\codegear\rad studio\6.0\source\win32\vcl 路徑
去掉這個路徑后,就沒有F2051問題了
另外,我這里遇到的是系統提供的unit,如果是自己寫的unit出了問題,或許該在搜索路徑里找錯了。
參考
http://hi.baidu.com/liaoxuewei2008/blog/item/6928cf8282cffebc6d8119f5.html
http://topic.csdn.net/u/20080222/23/84f94b77-0c47-4cd1-b9fd-3aafdb9d7446.html
http://blog.sina.com.cn/s/blog_53912cf101000a5x.html