作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
这个问题我已经困扰好几天了。我有一个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 individual。 在此输入代码
最佳答案
TIdPeerThread
是 Indy 9 及更早版本中的一个类。它在 Indy 10 中不存在。它被替换为 TIdContext
。因此,您使用的 IdHTTPWebBrokerBridge.pas
版本与笔记本电脑的 Indy 版本不符。您可以从 Indy 的 SVN 服务器或 Fulgan 镜像获取最新版本的 Indy 10 和 IdHTTPWebBrokerBridge.pas
。两者的链接均位于 Indy's website .
关于delphi - 无法编译使用的单元 "IdHTTPWebBrokerBridge",delphi 2005,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9379087/
这个问题我已经困扰好几天了。我有一个delphi应用程序,我试图在我的笔记本电脑上运行。这个程序在其他计算机上运行得很好,但是当我尝试在我的笔记本电脑中复制该程序时,它显示很多错误: [Error]
我是一名优秀的程序员,十分优秀!