전체 글 298

Ubuntu에서 C컴파일시 에러.

root@rick-desktop:/home/pg# gcc -o hello hello.c hello.c:1:19: error: stdio.h: No such file or directory hello.c: In function 'main': hello.c:5: warning: incompatible implicit declaration of built-in function 'printf' 이는 라이브러리가 정상적으로 설정되지 않았기에 나오는 에러다. 그러므로 해당 라이브러리를 설치해줘야 한다. apt-get install build-essential root@rick-desktop:/home/pg# gcc -o hello hello.c root@rick-desktop:/home/pg# ls hello he..