当前位置: 技术问答>linux和unix
***Help:编译ddd时遇到莫名parser错误,请各位大侠支招
来源: 互联网 发布时间:2015-07-31
本文导语: 我的编译环境是Solaris 9 for x86,gcc3.3.2. 编译ddd时报告如下错误: david@billdavid>make Making all in themes make[1]: Entering directory `/export/home/david/project/ddd-3.3.9/themes' make[1]: Nothing to be done for `all'. make[1]: Leaving directory...
我的编译环境是Solaris 9 for x86,gcc3.3.2.
编译ddd时报告如下错误:
david@billdavid>make
Making all in themes
make[1]: Entering directory `/export/home/david/project/ddd-3.3.9/themes'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/export/home/david/project/ddd-3.3.9/themes'
Making all in vsllib
make[1]: Entering directory `/export/home/david/project/ddd-3.3.9/vsllib'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/export/home/david/project/ddd-3.3.9/vsllib'
Making all in ddd
make[1]: Entering directory `/export/home/david/project/ddd-3.3.9/ddd'
make all-am
make[2]: Entering directory `/export/home/david/project/ddd-3.3.9/ddd'
if g++ -DHAVE_CONFIG_H -I. -I. -I. -I./.. -O2 -g -Wall -W -Wwrite-strings -t
rigraphs -MT ddd.o -MD -MP -MF ".deps/ddd.Tpo" -c -o ddd.o ddd.C;
then mv -f ".deps/ddd.Tpo" ".deps/ddd.Po"; else rm -f ".deps/ddd.Tpo"; exit 1; f
i
ddd.C:888: error: parse error before numeric constant
ddd.C:888: error: missing ';' before right brace
ddd.C:889: error: parse error before `}' token
make[2]: *** [ddd.o] Error 1
make[2]: Leaving directory `/export/home/david/project/ddd-3.3.9/ddd'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/export/home/david/project/ddd-3.3.9/ddd'
make: *** [all-recursive] Error 1
报错的行的内容如下:
struct RecentItems {
enum RecentItem { R1, R2, R3, R4, R5, R6, R7, R8, R9 }; ///888行,这一行报错
};
但是上面这一行怎么会有错误呢?
在google里搜了一下,好像gcc要装什么补丁,但是ddd的网站上并没有相关说明。
请各位大侠赐教。
编译ddd时报告如下错误:
david@billdavid>make
Making all in themes
make[1]: Entering directory `/export/home/david/project/ddd-3.3.9/themes'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/export/home/david/project/ddd-3.3.9/themes'
Making all in vsllib
make[1]: Entering directory `/export/home/david/project/ddd-3.3.9/vsllib'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/export/home/david/project/ddd-3.3.9/vsllib'
Making all in ddd
make[1]: Entering directory `/export/home/david/project/ddd-3.3.9/ddd'
make all-am
make[2]: Entering directory `/export/home/david/project/ddd-3.3.9/ddd'
if g++ -DHAVE_CONFIG_H -I. -I. -I. -I./.. -O2 -g -Wall -W -Wwrite-strings -t
rigraphs -MT ddd.o -MD -MP -MF ".deps/ddd.Tpo" -c -o ddd.o ddd.C;
then mv -f ".deps/ddd.Tpo" ".deps/ddd.Po"; else rm -f ".deps/ddd.Tpo"; exit 1; f
i
ddd.C:888: error: parse error before numeric constant
ddd.C:888: error: missing ';' before right brace
ddd.C:889: error: parse error before `}' token
make[2]: *** [ddd.o] Error 1
make[2]: Leaving directory `/export/home/david/project/ddd-3.3.9/ddd'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/export/home/david/project/ddd-3.3.9/ddd'
make: *** [all-recursive] Error 1
报错的行的内容如下:
struct RecentItems {
enum RecentItem { R1, R2, R3, R4, R5, R6, R7, R8, R9 }; ///888行,这一行报错
};
但是上面这一行怎么会有错误呢?
在google里搜了一下,好像gcc要装什么补丁,但是ddd的网站上并没有相关说明。
请各位大侠赐教。
|
应该和patch没有关系吧,我下一个看看,明天再回答,晚上要过中秋。
|
我也下了一个3.3.9,编译没有问题啊
|
3.3.3
我用的是suse9
我用的是suse9