李威 さぽている

小说翻译,日语相关转移至http://blog.hjenglish.com/liwei

delphi的F2051问题

[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

posted on 2009-06-08 17:32 李威 阅读(587) 评论(0)  编辑  收藏


只有注册用户登录后才能发表评论。


网站导航: