无法编译使用过的单元“IdHTTPWebBrokerBridge”,delphi 2005

时间:2012-02-21 14:15:52

标签: delphi delphi-2005

我有几天这个问题。我有一个delphi应用程序,我试图在我的笔记本电脑中运行。这个程序在其他计算机上运行得非常好,但是当我尝试在我的笔记本电脑中复制程序时,它会显示很多错误:

[Error] IdHTTPWebBrokerBridge.pas(46): E2003 Undeclared identifier: 'TIdPeerThread'
[Error] IdHTTPWebBrokerBridge.pas(104): E2170 Cannot override a non-virtual method
[Error] IdHTTPWebBrokerBridge.pas(238): E2029 ')' expected but identifier 'Connection' found
[Error] IdHTTPWebBrokerBridge.pas(238): E2066 Missing operator or semicolon
[Error] IdHTTPWebBrokerBridge.pas(242): E2029 ':=' expected but ':' found
[Error] IdHTTPWebBrokerBridge.pas(242): E2015 Operator not applicable to this operand type
[Error] IdHTTPWebBrokerBridge.pas(242): E2014 Statement expected, but expression of type 'string' found
[Error] IdHTTPWebBrokerBridge.pas(243): E2029 ':=' expected but ':' found
[Error] IdHTTPWebBrokerBridge.pas(243): E2015 Operator not applicable to this operand type
[Error] IdHTTPWebBrokerBridge.pas(244): E2029 ':=' expected but ':' found
[Error] IdHTTPWebBrokerBridge.pas(244): E2015 Operator not applicable to this operand type
[Error] IdHTTPWebBrokerBridge.pas(245): E2029 ':=' expected but ':' found
[Error] IdHTTPWebBrokerBridge.pas(245): E2015 Operator not applicable to this operand type
[Error] IdHTTPWebBrokerBridge.pas(246): E2153 ';' not allowed before 'ELSE'
[Error] IdHTTPWebBrokerBridge.pas(249): E2029 '.' expected but ';' found
[Error] IdHTTPWebBrokerBridge.pas(308): E2066 Missing operator or semicolon
[Error] IdHTTPWebBrokerBridge.pas(308): E2066 Missing operator or semicolon
[Error] IdHTTPWebBrokerBridge.pas(451): E2066 Missing operator or semicolon
[Error] IdHTTPWebBrokerBridge.pas(451): E2066 Missing operator or semicolon
[Error] IdHTTPWebBrokerBridge.pas(499): E2037 Declaration of 'Create' differs from previous declaration
[Error] IdHTTPWebBrokerBridge.pas(501): E2075 This form of method call only allowed in methods of derived types
[Error] IdHTTPWebBrokerBridge.pas(502): E2003 Undeclared identifier: 'FOkToProcessCommand'
[Fatal Error] Primews.dpr(145): F2063 Could not compile used unit 'SourceServerBase\IdHTTPWebBrokerBridge.pas'

我不知道如何自己解决这个问题,因为我第一次遇到这个问题。有什么建议我该怎么办?谢谢大家。

遇到新问题 我发布此问题后没有做出改动。现在,它显示新的错误消息:

[Fatal Error] Primews.dpr(67): F2051 Unit DBClient was compiled with a different version of DSIntf.szFIELDNAME

这是什么意思? 顺便说一句,我在笔记本电脑中使用delphi 2005 personal。     在这里输入代码

1 个答案:

答案 0 :(得分:4)

TIdPeerThread是Indy 9及更早版本的一个类。它在Indy 10中不存在。它被替换为TIdContext。因此,您使用的是错误版本的IdHTTPWebBrokerBridge.pas,用于笔记本电脑的Indy版本。您可以从Indy的SVN服务器或Fulgan镜像获取最新版本的Indy 10和IdHTTPWebBrokerBridge.pas。两者的链接都在Indy's website