[2017.03.29] stdio.h 등의 헤더 파일 부재시 해결방법.

Posted by 센큐
2017. 3. 29. 12:25 os/linux (서버, 일반)

우분투의 gcc에선 그런 현상이 일어나지 않지만 리눅스민트 17.3에서 컴파일을 하려고 하면 fatal error : stdio.h : No such file or directory 라고 뜨는 경우가 간혹 있다.


$ cd /usr/include/

로 들어가보니 없다. stdio.h가 없다..


$ sudo apt-get install libc6-dev

실행하면 stdio.h가 생성된 것을 확인 가능하다.

컴파일도 정상적으로 된다.


출처는 http://stackoverflow.com/questions/19580758/gcc-fatal-error-stdio-h-no-such-file-or-directory 여기