Unix/Linux

AIX 5.3에서 6.1로 업그레이드 후 gcc 에러날 때

steloflute 2013. 11. 6. 23:30

https://www.ibm.com/developerworks/community/forums/html/topic?id=77777777-0000-0000-0000-000014495919

 

a.c:

 

#include <unistd.h>

int main() {
}

 

gcc a.c

로 컴파일했을 때

 

/usr/include/unistd.h:924: error: expected ')' before '[' token

 

에러가 발생시

 

http://www-03.ibm.com/systems/power/software/aix/linux/toolbox/date.html 에서 gcc 6.1용을 받아 설치하면 된다.