안녕하세요 ~ utime입니다.
빌더에서 컴포넌트 설치 후 몇 가지 해 줄 사항이 있습니다. 델파이는 안그런 것 같지만~ ㅡㅡ;;;
- 빌더 Menu -> Tools -> Library -> LibraryPath 에 설치한 컴포넌트 소스 경로를 추가 시켜주시면 됩니다.(인디의 경우 자동으로 추가가 될 것입니다.) 이건 꼭 해주시구요~
이건 둘중 하나만 하시면 됩니다.
- 설치한 컴포넌트의 소스중 hpp, h 로 끝나는 파일을 빌더 설치된 경로에서 Include / vcl 폴더에 모두 복사
그리고 역시 컴포넌트 소스의 lib, pas, dcu, dfm 파일을 빌더 설치된 경로에서 Lib 폴더에 모두 복사하여 사용하는 방법이 있습니다.
또 다른 방법으로
- 빌더 Menu -> Project -> Option -> Directories/Conditionals 에서 Include Path and Libary Path에 컴포넌트 소스 경로를 추가 시켜 주시면 됩니다.
이것이 확실한 정답인지 모르겠습니다.
저의 경우 컴포넌트 설치 후 아래와 같이 에러가 났을 때 해결했던 방법입니다.
다른 좋은 방법있으면 다른 분이 올려주실 겁니다. ^^
이상이구요~ 즐프하세요~ *^^*
훗날 다시 수정~ ^^*
프로잭트 진행하는데 아래와 같은 에러가 나더라구요~
그래서 이리저리 하다가 해결 방법을 찾았는데
제가 답변 달은 것 중 미비한 것이 있어 다시 수정합니다.
Multiple declaration for 'fd_set'
이 문제가 발생했을 때 답변 주신 분들중 Winsocket.h 파일을 위치 이동시키는 방법도 있지만
제 개인적으로는 아래 답변이 가장 좋은 것 같네요~ ^^
http://cbuilder.borlandforum.com/impboard/impboard.dll?action=read&db=bcb_qna&no=43171
이 글을 훗날 누가 볼지 모르겠지만 자료의 정확성과 업뎃을 위해 수정합니다~
허접한 utime... ㅠㅠ
장석우 님이 쓰신 글 :
: 설치방법은 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
: