【发布时间】:2015-07-12 21:03:37
【问题描述】:
我无法在我的 64 位 Ubuntu、Linux 上编译用于 32 位 unix 系统的代码。有没有人知道可能是什么问题?
gcc main.o test.o render.o transform.o model.o vector.o color.o -o the_thing -lSDL
/usr/bin/ld: transform.o: undefined reference to symbol 'cos@@GLIBC_2.2.5'
//lib/x86_64-linux-gnu/libm.so.6: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
【问题讨论】:
-
错误信息告诉你在命令行中添加
/lib/x86_64-linux-gnu/libm.so.6(或者更好的是短版-lm)...
标签: ubuntu gcc 64-bit libraries libm