C로 배우는 알고리즘을 하는중인데 컴파일이 안됩니다.!!!!!!!!!..........ㅜㅜ
유클리드 알고리즘코드를 쓰는데
소스파일이름이 Checking_time.c 이고
여기에 헤더파일 "timer.h"라는 것을 새로이 만들고
timer.h 안에 bios.h를 인클루드해야하는데
없어서
인터넷에 코드보고 다시 bios.h 만들어서
C:\MinGW\include 여기 넣어주었습니다.
그런데 웬걸
gcc Checking_time.c -o Checking_time
입력하니
gcc Checking_time.c -o Checking_time
C:\Users\\AppData\Local\Temp\ccLS11kZ.o:Checking_time.c:(.text+0x104): undefined reference to `biostime'
C:\Users\\AppData\Local\Temp\ccLS11kZ.o:Checking_time.c:(.text+0x14d): undefined reference to `biostime'
C:\Users\\AppData\Local\Temp\ccLS11kZ.o:Checking_time.c:(.text+0x199): undefined reference to `biostime'
C:\Users\\AppData\Local\Temp\ccLS11kZ.o:Checking_time.c:(.text+0x1e2): undefined reference to `biostime'
C:\Users\\AppData\Local\Temp\ccLS11kZ.o:Checking_time.c:(.text+0x22e): undefined reference to `biostime'
C:\Users\\AppData\Local\Temp\ccLS11kZ.o:Checking_time.c:(.text+0x277): more undefined references to `biostime' follow
collect2.exe: error: ld returned 1 exit status
이렇게 되더군요;; 도데체 문제가무엇이죠??
답변해주시면 정말 감사하겠습니다 ㅜㅜ
헤더 파일만 만들어 넣었을 뿐, 프로그램의 본체가
헤더 파일만 만들어 넣었을 뿐, 프로그램의 본체가 없기 때문이죠.
라이브러리를 구해서 넣으세요.
댓글 달기