简体   繁体   English

不能在 lazarus 中使用 Indy

[英]cannot use Indy in lazarus

I am install Indy from Online package manager, but cannot use indy component like IdTCPClient in my project, it will alert error:我从在线包管理器安装 Indy,但不能在我的项目中使用像IdTCPClient这样的 indy 组件,它会警告错误:

Fatal: Can't find unit IdTCPClient used by Unit1

my source code:我的源代码:

unit Unit1;

{$mode objfpc}{$H+}

interface

uses
  Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, IdTCPClient;

type
  TForm1 = class(TForm)
  private

  public

  end;

var
  Form1: TForm1;

implementation

{$R *.lfm}

end.

and the package screenshot (means installed Indy proper):和包截图(意味着正确安装了 Indy):

在此处输入图片说明

在您的项目中,转到 Project->Project Inspector,然后右键单击“requires Packages”并添加 indylaz

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM