| [ CnUnix ] in KIDS 글 쓴 이(By): chunmok (준목) 날 짜 (Date): 2003년 9월 2일 화요일 오후 01시 56분 57초 제 목(Title): [Q]C++에서 변수이름, 함수이름 충돌 솔라리스에서 g++로 컴파일중 변수 이름과 함수 이름이 충돌하는 문제가 발생했습니다. sysinfo(2)를 사용하면, 함수가 아니라 structure 변수로 인식하네요. 시스템에서 정의한 것들이라 바꿀수도 없고... 해결 방법을 아시는 분의 조언을 부탁드립니다. /usr/include/sys/sysinfo.h:101: `struct sysinfo_t sysinfo' redeclared as differe nt kind of symbol /usr/include/sys/systeminfo.h:77: previous declaration of `int sysinfo(int, char *, long int)' szh.cpp:899: no match for call to `(sysinfo_t) (int, char[256], unsigned int)' 그래... 다시 시작하는 거야 ... |