当前位置: 技术问答>linux和unix
GCC编译错误,请问如何解决hidden symbol `__floatundidf' in linker stubs is referenced by DSO
来源: 互联网 发布时间:2016-10-29
本文导语: 本人现在使用ffmpeg.c中的一段代码加到自己的一个工程中,单独编译ffmpeg.c的这段代码是OK的,使用mipsel-linux-gcc -o ffmpeg -L /库目录 -I /头文件目录 ffmpeg.c -lcmdutils -lavdevice -lavformat -lavcodec -lavutil -lm -ldl -lpthread...
本人现在使用ffmpeg.c中的一段代码加到自己的一个工程中,单独编译ffmpeg.c的这段代码是OK的,使用mipsel-linux-gcc -o ffmpeg -L /库目录 -I /头文件目录 ffmpeg.c -lcmdutils -lavdevice -lavformat -lavcodec -lavutil -lm -ldl -lpthread,来编译。但是将这段代码加到我自己的工程中编译就出错了,提示说/opt/brcm/toolchains/crosstools_hf-linux-2.6.18.0_gcc-4.2-11ts_uclibc-nptl-0.9.29-20070423_20090508/bin/../lib/gcc/mipsel-linux-uclibc/4.2.0/../../../../mipsel-linux-uclibc/bin/ld: mltest: hidden symbol `__floatundidf' in linker stubs is referenced by DSO
/opt/brcm/toolchains/crosstools_hf-linux-2.6.18.0_gcc-4.2-11ts_uclibc-nptl-0.9.29-20070423_20090508/bin/../lib/gcc/mipsel-linux-uclibc/4.2.0/../../../../mipsel-linux-uclibc/bin/ld: final link failed: Nonrepresentable section on output
网上搜了下说是要在编译选项中加入-shared,我试了下还是有错,上面的错误提示变成了:/opt/brcm/toolchains/crosstools_hf-linux-2.6.18.0_gcc-4.2-11ts_uclibc-nptl-0.9.29-20070423_20090508/bin/../lib/gcc/mipsel-linux-uclibc/4.2.0/../../../../mipsel-linux-uclibc/bin/ld: non-dynamic relocations refer to dynamic symbol timer_settime
/opt/brcm/toolchains/crosstools_hf-linux-2.6.18.0_gcc-4.2-11ts_uclibc-nptl-0.9.29-20070423_20090508/bin/../lib/gcc/mipsel-linux-uclibc/4.2.0/../../../../mipsel-linux-uclibc/bin/ld: failed to set dynamic section sizes: Bad value
大家谁知道的能给我一个解答,谢谢了!
/opt/brcm/toolchains/crosstools_hf-linux-2.6.18.0_gcc-4.2-11ts_uclibc-nptl-0.9.29-20070423_20090508/bin/../lib/gcc/mipsel-linux-uclibc/4.2.0/../../../../mipsel-linux-uclibc/bin/ld: final link failed: Nonrepresentable section on output
网上搜了下说是要在编译选项中加入-shared,我试了下还是有错,上面的错误提示变成了:/opt/brcm/toolchains/crosstools_hf-linux-2.6.18.0_gcc-4.2-11ts_uclibc-nptl-0.9.29-20070423_20090508/bin/../lib/gcc/mipsel-linux-uclibc/4.2.0/../../../../mipsel-linux-uclibc/bin/ld: non-dynamic relocations refer to dynamic symbol timer_settime
/opt/brcm/toolchains/crosstools_hf-linux-2.6.18.0_gcc-4.2-11ts_uclibc-nptl-0.9.29-20070423_20090508/bin/../lib/gcc/mipsel-linux-uclibc/4.2.0/../../../../mipsel-linux-uclibc/bin/ld: failed to set dynamic section sizes: Bad value
大家谁知道的能给我一个解答,谢谢了!
|
貌似,是mltest这个符号的浮点型没有定义,你需要找到它需要链接的库,这个具体我也不知道,你在看看,好像你这个是嵌入式相关,哈哈!