[討論] cos, round
我在程式裡用math.h的cos和round
用gcc在工作站編譯出現如下訊息
/tmp/ccKNB6Ep.o: In function `DCT':
a.c:(.text+0x2d7): undefined reference to `cos'
a.c:(.text+0x329): undefined reference to `cos'
a.c:(.text+0x3ad): undefined reference to `lround'
collect2: ld returned 1 exit status
請問是怎麼回事?
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.112.30.40
推
12/22 17:29, , 1F
12/22 17:29, 1F
→
12/22 17:29, , 2F
12/22 17:29, 2F
推
12/23 01:51, , 3F
12/23 01:51, 3F