[완료]floor 함수가 안됩니다...

junk11의 이미지

/tmp/ccyNPJzL.o(.text+0x45): In function `main':
: undefined reference to `floor'
collect2: ld returned 1 exit status

이런 에러메세지가 나오네요
물론 math.h 는 인클루드했습니다

데비안에서도 레드햇 EL4에서도 똑같네요

rapzzard의 이미지

gcc blah -lm or man floor

junk11의 이미지

감사합니다
해결됐습니다

-------------------------
내 악마를 영혼에게 팔아넘기다