compiler-errors - indy-10.2.0.1/fpc/IdStackUnix.pas(610,19)错误: Identifier not found “socket”

标签 compiler-errors debian lazarus indy10

我为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/

相关文章:

scala - 重载的方法值在scala中应用替代错误

apache - 安装 SSL 证书 - Google Compute Engine VM

lazarus - 在 Lazarus 中处理项目后调整 TListview 中所选项目的颜色

windows - 使用 Lazarus 为 Mac 编写代码

delphi - 是否可以将语句转换为表达式?

java - javac使用注释处理器返回不正确的错误代码

c++ - CMake 编译时不包含链接库的路径

eclipse - Eclipse编译器错误/警告首选项

java - Debian linux 上的 Android SDK 有空白窗口

debian - 在Virtualbox上安装Debian期间无法安装软件