打印

麻烦各位应该怎么改能编译通过?

[复制链接]
1923|2
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
xsgy123|  楼主 | 2010-8-14 09:56 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
root@localhost ~]# cd /home/wanghongwu/mp3
[root@localhost mp3]# make
arm-elf-gcc -I/usr/local/arm_tools/arm-elf/inc -Wl,-elf2flt -L/usr/local/arm_tools/lib/gcc-lib/arm-elf/3.0 -L/usr/local/arm_tools/arm-elf/lib main.c -o mp3 -lc -lgcc -lc
In file included from main.c:2:
global.h:30:43: warning: no newline at end of file
In file included from main.c:3:
decode.h:31:52: warning: no newline at end of file
main.c: In function `main':
main.c:174: warning: passing arg 4 of `out_fifo' from incompatible pointer type
main.c:12: warning: return type of `main' is not `int'
main.c:189:1: warning: no newline at end of file
/tmp/ccWlTSes.o: In function `main':
/tmp/ccWlTSes.o(.text+0x5c): the 'gets' function is dangerous and should not be used.
mp3.elf2flt: In function `main':
mp3.elf2flt(.text+0x214): undefined reference to `seek_sync'
mp3.elf2flt(.text+0x2a4): undefined reference to `decode_info'
mp3.elf2flt(.text+0x3a4): undefined reference to `getbits'
mp3.elf2flt(.text+0x400): undefined reference to `III_get_side_info'
mp3.elf2flt(.text+0x418): undefined reference to `main_data_slots'
mp3.elf2flt(.text+0x448): undefined reference to `getbits'
mp3.elf2flt(.text+0x450): undefined reference to `hputbuf'
mp3.elf2flt(.text+0x498): undefined reference to `hgetbits'
mp3.elf2flt(.text+0x4e8): undefined reference to `rewindNbytes'
mp3.elf2flt(.text+0x500): undefined reference to `main_data_slots'
mp3.elf2flt(.text+0x550): undefined reference to `hgetbits'
mp3.elf2flt(.text+0x5cc): undefined reference to `III_get_scale_factors'
mp3.elf2flt(.text+0x60c): undefined reference to `III_hufman_decode'
mp3.elf2flt(.text+0x6ac): undefined reference to `III_dequantize_sample'
mp3.elf2flt(.text+0x728): undefined reference to `III_stereo'
mp3.elf2flt(.text+0x754): undefined reference to `out_fifo'
mp3.elf2flt(.text+0x7e8): undefined reference to `III_reorder'
mp3.elf2flt(.text+0x848): undefined reference to `III_antialias'
mp3.elf2flt(.text+0x8c8): undefined reference to `III_hybrid'
mp3.elf2flt(.text+0xa30): undefined reference to `SubBandSynthesis'
mp3.elf2flt(.text+0xeac): undefined reference to `totbit_maindata'
mp3.elf2flt(.text+0xebc): undefined reference to `s_freq'
collect2: ld returned 1 exit status
make: *** [all] Error 1

相关帖子

沙发
无冕之王| | 2010-8-14 15:25 | 只看该作者
怎么一点注释都没有呢:dizzy:

使用特权

评论回复
板凳
火箭球迷| | 2010-8-15 15:40 | 只看该作者
楼主给的代码有点乱了,适当给些注释,效果会好一些

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

229

主题

2603

帖子

1

粉丝