|
^^: 초보자가 이렇게 또 질문올립니다.
아래와 같은 메세지가 컴파일시 오류가 발생하는데요.
에러 메세지
------------------------------------------------------------------------------
[C++ Error] soket.cpp(189): E2209 Unable to open include file 'IdBaseComponent.hpp'
[C++ Error] soket.cpp.cpp(190): E2209 Unable to open include file 'IdComponent.hpp'
[C++ Error] soket.cpp.cpp(191): E2209 Unable to open include file 'IdHTTP.hpp'
[C++ Error] soket.cpp.cpp(192): E2209 Unable to open include file 'IdTCPClient.hpp'
[C++ Error] soket.cpp.cpp(193): E2209 Unable to open include file 'IdTCPConnection.hpp'
[C++ Error] soket.cpp.cpp(325): E2034 Cannot convert 'WideString' to 'wchar_t *'
[C++ Error] soket.cpp.cpp(325): E2342 Type mismatch in parameter 'SourceString' (wanted 'wchar_t *', got 'WideString')
[C++ Error] soket.cpp.cpp(364): E2034 Cannot convert 'WideString' to 'wchar_t *'
[C++ Error] soket.cpp.cpp(364): E2342 Type mismatch in parameter 'SourceString' (wanted 'wchar_t *', got 'WideString')
[C++ Error] soket.cpp.cpp(402): E2034 Cannot convert 'WideString' to 'wchar_t *'
[C++ Error] soket.cpp.cpp(402): E2342 Type mismatch in parameter 'SourceString' (wanted 'wchar_t *', got 'WideString')
[C++ Error] soket.cpp.cpp(450): E2451 Undefined symbol 'TIdHTTP'
[C++ Error] soket.cpp.cpp(450): E2451 Undefined symbol 'HTTP'
[C++ Error] soket.cpp.cpp(496): E2303 Type name expected
[C++ Error] soket.cpp(496): E2379 Statement missing ;
[C++ Error] soket.cpp(505): E2158 Operand of 'delete' must be non-const pointer
[C++ Error] soket.cpp(514): E2015 Ambiguity between 'Variant::operator bool() const' and 'Variant::operator wchar_t *() const'
[C++ Error] soket.cpp(522): E2451 Undefined symbol 'e'
[C++ Warning] soket.cpp.cpp(539): W8004 'nCurrentBuild' is assigned a value that is never used
[C++ Error] soket.cpp(149): E2451 Undefined symbol 'exception'
---------------------------------------------------------------------------------------
그래서 'IdBaseComponent.hpp'로 게시판을 검색해보니
아래의 글 처럼 답변이 달려 있더군요. ^^:
--------------------------------------------------------------------------------------------------
빌더 Menu -> Tools -> Library -> LibraryPath 에 설치한 컴포넌트 소스 경로를 추가 시켜주시면 됩니다.(인디의 경우 자동으로 추가가 될 것입니다.) 이건 꼭 해주시구요~
이건 둘중 하나만 하시면 됩니다.
- 설치한 컴포넌트의 소스중 hpp, h 로 끝나는 파일을 빌더 설치된 경로에서 Include / vcl 폴더에 모두 복사
그리고 역시 컴포넌트 소스의 lib, pas, dcu, dfm 파일을 빌더 설치된 경로에서 Lib 폴더에 모두 복사하여 사용하는 방법이 있습니다.
또 다른 방법으로
- 빌더 Menu -> Project -> Option -> Directories/Conditionals 에서 Include Path and Libary Path에 컴포넌트 소스 경로를 추가 시켜 주시면 됩니다.
-------------------------------------------------------------------------------------------
문제는 위의 답변이 C++ 6.0에 대한 답변이라서 델파이를 처음 접하는 사용자라서
해결을 못 하고 있습니다. ^^:
제가 쓰는 버전은 BORLAND DEVELOPER STUDIO 2006 이라서 그런지
위의 경로로 찾아보아도 메뉴가 없던데 2006에서 해결하는 방법좀 알려주셨으면 합니다. ^^;
|