에러가 발생한 부분이 stricmp 함수인데..
이함수는 문자열을 비교 해서 int 형 값을 반환 하네요
그래서 빌더에서 이 함수와 같은 기능의 함수를 찾아 보았더니..
AnsiCompare, AnsiCompareIC 함수와 같더군요.
그래서 이 함수로 대치 하니 정의 되지 않은 함수라고 해서.. 그래서 다시 찾아 보았습니다.
찾아보니, AnsiCompareText , CompareText 함수가 있던데..
이 함수중 어느것을 사용해야 하나요?
뽀뽀중 님이 쓰신 글 :
: dxf 화일을 읽고 쓸수 있게 해주는 오픈소스 입니다.
:
: 인터넷 검색해서 찾았는데,
:
: dll_writer.h 화일에서 에러가 발생 합니다.
:
: #include <strings.h> 를 #include <cstring>로 수정하였는데도
:
:
=DL_VERSION_2000 ||
: strcasecmp(attrib.getLineType().c_str(), "BYLAYER")) {
: dxfString(6, attrib.getLineType());
: }
: >
:
: 의 strcasecmp(attrib.getLineType().c_str(), "BYLAYER")) 부분에서 에러가 발생 합니다.
:
: 에러는 아래와 같습니다.
:
:
: [BCC32 Warning] dl_codes.h(42): W8017 Redefinition of 'strcasecmp' is not identical
: Full parser context
: dl_writer_ascii.cpp(33): #include ..\dxflib-2.5.0.0-1.src\src\dl_writer_ascii.h
: dl_writer_ascii.h(33): #include ..\dxflib-2.5.0.0-1.src\src\dl_writer.h
: dl_writer.h(39): #include ..\dxflib-2.5.0.0-1.src\src\dl_attributes.h
: dl_attributes.h(31): #include ..\dxflib-2.5.0.0-1.src\src\dl_codes.h
: [BCC32 Error] dl_writer.h(345): E2268 Call to undefined function '_stricmp'
: Full parser context
: dl_writer_ascii.cpp(33): #include ..\dxflib-2.5.0.0-1.src\src\dl_writer_ascii.h
: dl_writer_ascii.h(33): #include ..\dxflib-2.5.0.0-1.src\src\dl_writer.h
: dl_writer.h(60): class DL_Writer
: dl_writer.h(620): decision to instantiate: void DL_Writer::entityAttributes(const DL_Attributes &) const
: --- Resetting parser context for instantiation...
: dl_writer.h(326): parsing: void DL_Writer::entityAttributes(const DL_Attributes &) const
: [BCC32 Warning] dl_codes.h(103): W8058 Cannot create pre-compiled header: initialized data in header
:
: 아마도 #define strcasecmp(s,t) stricmp(s,t)의 함수가 빌더에서는 지원을 하지 않는것 같은데,,
: 이 함수를 어떻게 수정해야 빌더에서 컴파일이 가능 할까요??
:
: VC++ 용으로 제작된 소스에서 이런 함수를 많이 본것 같은, 어떻게 수정을 해야 하나요?
:
: 미리 감사 드립니다.