[ CnUnix ] in KIDS 글 쓴 이(By): darkman (아랑타불) 날 짜 (Date): 2004년 11월 6일 토요일 오전 01시 20분 27초 제 목(Title): c에서 cabs함수 충돌 c99로 복소함수 들어간 시물레이션을 하는데 math.h와 complex.h에 cabs함수가 다르게 정의돼있어 컴파일이 안됩니다. 이런 경우는 어떻게 해결해야하나요? c++로 복소수 class 정의해서 하니 메모리가 너무커져버리고. 어디 웹에보니 아래처럼 옵션주라는데 그래도 안되는군요. 다음은 에러메시지. c99 -w -g -c -D_C99_CABS_USER_DEFINED -c main.c cc-1143 c99: ERROR File = /usr/include/complex.h, Line = 170 Declaration is incompatible with "double cabs(struct __cabs_s)" (declared at line 667 of "/usr/include/math.h"). extern double cabs (double complex); ^ cc-1143 c99: ERROR File = /usr/include/complex.h, Line = 172 Declaration is incompatible with "long double cabsl(struct __cabsl_s)" (declared at line 528 of "/usr/include/math.h"). extern long double cabsl (long double complex); ^ 고수분들의 조언부탁드립니다. |