타깃 테스트 결과는 타깃에서 테스트를 실행하면 ‘타깃 로그’ 형태로 출력됩니다. 타깃 로그는 memset 함수를 사용하여 데이터를 저장하기 때문에 memset 함수를 사용하기 위해 cs_tfx.h 파일에 extern 키워드로 선언되어 있습니다.
‘타깃 테스트 코드 내보내기’를 할 때 원본 소스 코드에 cs_tfx.h 파일이 include 됩니다. 이 때, 테스트 대상 소스 코드에서 memset이나 strncpy 함수가 include 되어있는지 여부에 따라 multiple definition 오류가 발생할 수 있습니다.

ex) multiple definition of `memset' error

해당 오류가 발생한 경우에, Controller Tester 설치 경로의 cstfx.h 파일에서 multiple 오류가 발생한 라인을 주석처리한 뒤에 다시 ‘타깃 테스트 코드 내보내기’를 하면 문제를 해결할 수 있습니다.

cstfx.h 경로 예시: C:\Program Files\CodeScroll Controller Tester 3.1\plugins\com.codescroll.ut_3.1.2\target\lib\controller_nc\cs_tfx.h

Need more help with this?
Don’t hesitate to contact us here.

Thanks for your feedback.