here이라는 C 프로그램을 실행하려고합니다. 하지만 내가 일식에서 빌드하려고하면 암시 적으로 선언 된 함수와 존재하지 않는 액세스중인 레지스터에 대한 수많은 오류가 발생합니다. 아무도이 코드를 실행하고 그들이 일식 (프로그램, OS 등)에있어 어떻게되는지 궁금 해서요.이 코드를 실행하고 실행하기 위해 이클립스와 gcc가있는 우분투 가상 머신을 사용하는 Windows 머신입니다. 여기 C 프로그램을 빌드 할 수 없습니다.
(나는 원래 코드에서 몇 가지 버그를 해결했습니다) 이클립스 SDK에서 오류의 목록입니다**** Build of configuration Debug for project nearpi ****
make all
Building file: ../src/nearpi.c
Invoking: GCC C Compiler
gcc -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"src/nearpi.d" -MT"src/nearpi.d" -o "src/nearpi.o" "../src/nearpi.c"
../src/nearpi.c:465:1: warning: return type defaults to ‘int’ [-Wreturn-type]
../src/nearpi.c: In function ‘main’:
../src/nearpi.c:501:5: warning: implicit declaration of function ‘input’ [-Wimplicit-function-declaration]
../src/nearpi.c:532:9: warning: implicit declaration of function ‘nearPiOver2’ [-Wimplicit-function-declaration]
../src/nearpi.c:540:9: warning: implicit declaration of function ‘dbleCF’ [-Wimplicit-function-declaration]
../src/nearpi.c: At top level:
../src/nearpi.c:590:1: warning: return type defaults to ‘int’ [-Wreturn-type]
../src/nearpi.c:694:1: warning: return type defaults to ‘int’ [-Wreturn-type]
../src/nearpi.c:756:1: warning: return type defaults to ‘int’ [-Wreturn-type]
../src/nearpi.c: In function ‘nearPiOver2’:
Finished building: ../src/nearpi.c
../src/nearpi.c:935:1: warning: control reaches end of non-void function [-Wreturn-type]
../src/nearpi.c: In function ‘input’:
../src/nearpi.c:748:1: warning: control reaches end of non-void function [-Wreturn-type]
Building target: nearpi
../src/nearpi.c: In function ‘main’:
Invoking: GCC C Linker
gcc -o "nearpi" ./src/nearpi.o -lm
../src/nearpi.c:564:1: warning: control reaches end of non-void function [-Wreturn-type]
완료 건물 대상 : nearpi
here을 찾을 수 있습니다. – thegrinner
헤더 파일이 누락되었습니다. –
더 많은 의견이 필요하다고 생각합니다. 그러나 진지하게, 컴파일러를 호출 한 정확한 오류와 방식을 게시해야합니다. – 111111