설치방법은 FAQ에 있는 박정규님 글을 참조 했습니다.
http://www.borlandforum.com/impboard/attach/0000057235/Indy_Install.pdf
alt+f9에까지는 에러가 없는데 ctrl+9하면 에러가 발생합니다.
제가 잘못한게 뭔가요???
기존에 작성했던 코드에서는 다음과 같은 에러가 발생합니다.
[C++ Error] winsock2.h(109): E2238 Multiple declaration for 'fd_set'
[C++ Error] winsock.h(54): E2344 Earlier declaration of 'fd_set'
[C++ Error] winsock2.h(112): E2146 Need an identifier to declare
[C++ Error] winsock2.h(153): E2238 Multiple declaration for 'timeval'
...생략...
혹시나 해서 새로운 프로젝트를 작성하고 IdTCPclient를 폼위에 놓고 컴파일 하니
다음과 같은 에러가 발생합니다.
[C++ Error] Unit1.h(10): E2209 Unable to open include file 'IdBaseComponent.hpp'
[C++ Error] Unit1.h(11): E2209 Unable to open include file 'IdComponent.hpp'
[C++ Error] Unit1.h(12): E2209 Unable to open include file 'IdTCPClient.hpp'
[C++ Error] Unit1.h(13): E2209 Unable to open include file 'IdTCPConnection.hpp'
[C++ Error] Unit1.h(18): E2303 Type name expected
[C++ Error] Unit1.h(18): E2139 Declaration missing ;
[C++ Error] Unit1.h(18): E2109 Not an allowed type
////////////////////////////////////////////////////////////////////
//---------------------------------------------------------------------------
#ifndef Unit1H
#define Unit1H
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <IdBaseComponent.hpp>
#include <IdComponent.hpp>
#include <IdTCPClient.hpp>
#include <IdTCPConnection.hpp>
//---------------------------------------------------------------------------
class TForm1 : public TForm
{
__published: // IDE-managed Components
TIdTCPClient *IdTCPClient1;
private: // User declarations
public: // User declarations
__fastcall TForm1(TComponent* Owner);
};
//---------------------------------------------------------------------------
extern PACKAGE TForm1 *Form1;
//---------------------------------------------------------------------------
#endif