编译时产生错误,请大家指正一下common.h:25:18: error: glib.h: No such file or directory
In file included from common.h:32,
from mp3tl.h:7,
from flump3dec.h:9,
from flump3dec.c:9:
bitstream.h:17: error: expected specifier-qualifier-list before 'guint8'
bitstream.h:32: error: expected specifier-qualifier-list before 'guint64'
bitstream.h:64: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'bs_add_buffer'
bitstream.h:72: error: expected declaration specifiers or '...' before 'guint32'
bitstream.h:79: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'bs_buf_time'
bitstream.h:82: error: expected declaration specifiers or '...' before 'gboolean'
bitstream.h:85: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'bs_get1bit'
bitstream.h:87: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'bs_getbits'
bitstream.h:89: error: expected declaration specifiers or '...' before 'guint32'
bitstream.h:92: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'bs_getbits_aligned'
bitstream.h:95: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'bs_pos'
bitstream.h:100: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'bs_read_pos'
bitstream.h:105: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'bs_seek_sync'
bitstream.h:113: error: expected specifier-qualifier-list before 'gulong'
bitstream.h:131: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'h_getbits'
bitstream.h:133: error: expected declaration specifiers or '...' before 'guint'
bitstream.h:135: error: expected declaration specifiers or '...' before 'guint'
bitstream.h:136: error: expected declaration specifiers or '...' before 'guint'
bitstream.h:138: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'h_bits_avail'
bitstream.h:143: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'bs_get1bit'
bitstream.h:152: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'bs_getbits'
bitstream.h:206: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'bs_getbits_aligned'
bitstream.h:218: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'h_getbits'
bitstream.h:248: error: expected declaration specifiers or '...' before 'guint'
bitstream.h: In function 'h_putbyte':
bitstream.h:250: error: 'huffdec_bitbuf' has no member named 'buf'
bitstream.h:250: error: 'huffdec_bitbuf' has no member named 'offset'
bitstream.h:250: error: 'val' undeclared (first use in this function)
bitstream.h:250: error: (Each undeclared identifier is reported only once
bitstream.h:250: error: for each function it appears in.)
bitstream.h:251: error: 'huffdec_bitbuf' has no member named 'offset'
bitstream.h: At top level:
bitstream.h:263: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'h_bits_avail'
In file included from mp3tl.h:7,
from flump3dec.h:9,
from flump3dec.c:9:
common.h:108: error: expected specifier-qualifier-list before 'guint'
common.h:141: error: expected specifier-qualifier-list before 'guint'
common.h:158: error: expected specifier-qualifier-list before 'guint'
common.h:182: error: expected specifier-qualifier-list before 'gint'
common.h:193: error: expected '=', ',', ';', 'asm' or '__attribute__' before 's_rates'
common.h:194: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'bitrate'
common.h:205: error: expected declaration specifiers or '...' before 'guint'
common.h:205: error: expected declaration specifiers or '...' before 'guint'
common.h:207: error: expected declaration specifiers or '...' before 'guint'
common.h:207: error: expected declaration specifiers or '...' before 'guint'
common.h:208: error: expected declaration specifiers or '...' before 'guint'
common.h:211: error: expected ';', ',' or ')' before 'data'
In file included from flump3dec.h:9,
from flump3dec.c:9:
mp3tl.h:29: error: expected declaration specifiers or '...' before 'gboolean'
mp3tl.h:32: error: expected declaration specifiers or '...' before 'guint8'
mp3tl.h:32: error: expected declaration specifiers or '...' before 'guint'
mp3tl.h:33: error: expected declaration specifiers or '...' before 'guint'
mp3tl.h:33: error: expected declaration specifiers or '...' before 'GstClockTime'
In file included from flump3dec.c:9:
flump3dec.h:24: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'typedef'
flump3dec.h:29: error: expected specifier-qualifier-list before 'GstElement'
flump3dec.h:54: error: expected specifier-qualifier-list before 'GstElementClass'
flump3dec.h:57: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'flump3dec_get_type'
flump3dec.c:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GST_DEBUG_CATEGORY'
flump3dec.c:15: error: expected ')' before '*' token
flump3dec.c:17: error: expected ')' before '*' token
flump3dec.c:18: error: expected ')' before '*' token
flump3dec.c:20: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'flump3dec_sink_event'
flump3dec.c:21: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'flump3dec_sink_chain'
flump3dec.c:22: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'flump3dec_drain_avail'
flump3dec.c:23: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'flump3dec_change_state'
flump3dec.c:24: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
flump3dec.c:25: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'flump3dec_src_query'
flump3dec.c:26: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'flump3dec_src_convert'
flump3dec.c:28: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'flump3dec_src_event'
flump3dec.c:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'flump3_inbytes_to_time'
flump3dec.c:33: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
flump3dec.c:37: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'flump3dec_sink_factory'
flump3dec.c:48: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'flump3dec_src_factory'
flump3dec.c:62: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'flump3dec_get_type'
flump3dec.c:88: error: expected ')' before '*' token
flump3dec.c: In function 'flump3dec_base_init':
flump3dec.c:106: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'details'
flump3dec.c:106: error: 'details' undeclared (first use in this function)
flump3dec.c:106: error: expected expression before '{' token
flump3dec.c:112: error: 'GstElementClass' undeclared (first use in this function)
flump3dec.c:112: error: 'element_class' undeclared (first use in this function)
flump3dec.c:115: error: 'flump3dec_src_factory' undeclared (first use in this function)
flump3dec.c:117: error: 'flump3dec_sink_factory' undeclared (first use in this function)
flump3dec.c: At top level:
flump3dec.c:123: error: expected ')' before '*' token
flump3dec.c:162: error: expected ')' before '*' token
flump3dec.c:178: error: expected ')' before '*' token
flump3dec.c:190: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'flump3dec_sink_chain'
flump3dec.c:211: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'flump3dec_drain_avail'
flump3dec.c:385: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'flump3dec_sink_event'
flump3dec.c:458: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'flump3dec_change_state'
flump3dec.c:490: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
flump3dec.c:502: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'flump3_inbytes_to_time'
flump3dec.c:516: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'flump3dec_src_query'
flump3dec.c:611: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'flump3dec_src_convert'
flump3dec.c:672: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'flump3dec_src_event'
flump3dec.c:736: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'plugin_init'
flump3dec.c:751: error: expected ')' before string constant
make[2]: *** [libgstflump3dec_la-flump3dec.lo] 错误 1
make[2]: Leaving directory `/home/hhdx/xz/gst-fluendo-mp3-0.9.5/decoder'
make[1]: *** [all-recursive] 错误 1
make[1]: Leaving directory `/home/hhdx/xz/gst-fluendo-mp3-0.9.5'
make: *** [all] 错误 2
谢谢!!!


思润1018 于 2011-03-31 22:38:46发表:
这可难到我了,如何换编译器啊?{:3_115:}
pallana 于 2011-03-31 10:31:58发表:
语法错误,
asm表明你的程序里有汇编语句,而编译器不支持你所写的汇编语句格式
换个编译器或者把汇编语句改为你机器上的编译器支持的格式。特别是伪指令,