编译文件的时候遇到的问题求MJJ帮忙
[*]ubgears.c:(.text.unlikely+0x4e4): undefined reference to `sincos'[*]ubgears.c:(.text.unlikely+0x5b6): undefined reference to `sincos'
[*]ubgears.c:(.text.unlikely+0x66e): undefined reference to `sincos'
[*]ubgears.c:(.text.unlikely+0x6d7): undefined reference to `sincos'
[*]ubgears.c:(.text.unlikely+0x732): undefined reference to `sincos'
[*]/tmp/ccRLinpf.o:ubgears.c:(.text.unlikely+0x789): more undefined references to `sincos' follow
[*]/tmp/ccRLinpf.o: In function `gear.constprop.1':
[*]ubgears.c:(.text.unlikely+0xfbd): undefined reference to `sincosf'
[*]ubgears.c:(.text.unlikely+0x1012): undefined reference to `sincos'
[*]collect2: ld returned 1 exit status复制代码错误如上。- -貌似是编译时候无法连接sin cos 头文件?咋回事? 如何 include math.h的头文件没有?
编译参数加了-lm没有?
编译前沐浴焚香拜过咩咩没有?
404 发表于 2013-6-7 12:58
back.gif
include math.h的头文件没有?
编译参数加了-lm没有?
include了。 也lm了。。
单手摘月 发表于 2013-6-7 13:13
back.gif
sin cos?
谁知道是啥玩意。
页:
[1]