lecture를 보면 cs50.h를 include하면 get_int 등의 함수를 쓸 수 있다고 했는데 제가 컴파일을 할 땐 get_int등의 함수를 참조(reference)할 수 없다고 하네요. 다른 분들은 cs50.h 를 include하면 잘 되시나요?
math.h함수를 참조했을 때도 같은 에러가 발생하네요! 혹시 클라우드 9에서는 stdio.h 라던가 제한적으로만 라이브러리를 참조할 수 있는건가요 ?
/tmp/credit-056f4c.o: In function main': credit.c:(.text+0x73): undefined reference to pow'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
lecture를 보면 cs50.h를 include하면 get_int 등의 함수를 쓸 수 있다고 했는데 제가 컴파일을 할 땐 get_int등의 함수를 참조(reference)할 수 없다고 하네요. 다른 분들은 cs50.h 를 include하면 잘 되시나요?
math.h함수를 참조했을 때도 같은 에러가 발생하네요! 혹시 클라우드 9에서는 stdio.h 라던가 제한적으로만 라이브러리를 참조할 수 있는건가요 ?
/tmp/credit-056f4c.o: In function
main': credit.c:(.text+0x73): undefined reference topow'clang: error: linker command failed with exit code 1 (use -v to see invocation)