我为Lazarus下载了Indy10,但是当我尝试对其进行编译时,出现此错误:
"indy-10.2.0.1/fpc/IdStackUnix.pas(610,19) Error: Identifier not found "socket""
如何解决?
多谢您的回覆。
最佳答案
10.2.0是Indy的非常旧的版本。这在Indy的下载页面上有明确说明:
Download source from the Development Snapshot and extract the source files to a folder of your choosing on your PC.
An older code from the version control system that was organized into a sensible distribution. This was updated on 11/13/2007. Please read the README file included with this distribution.
•indy-10.2.0.3.zip - for Windows users.
•indy-10.2.0.3.tar.gz - for Unix/Linux system users.
当前的Indy版本是10.6.2。 FPC的旧版本不再适用,很久以前它已合并到主要代码库中。
IdStackUnix.pas
不再直接调用socket()
,现在改为调用FreePascal的 fpsocket()
函数。您需要download an up-to-date version。
关于compiler-errors - indy-10.2.0.1/fpc/IdStackUnix.pas(610,19)错误: Identifier not found “socket” ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34230311/