lixujie@lixujie-desktop:/usr/XOgastan/src$ make
gmake[1]: 正在进入目录 `/usr/XOgastan/src/nast'
g++ -c -DLINUX -D_REENTRANT -fpic -I/usr/include -I/src/include -I/include -o nast_node.o nast_node.cpp
nast_node.cpp:22:28: error: nast/nast_node.h: 没有该文件或目录
nast_node.cpp:30: error: ‘nast_node’ has not been declared
nast_node.cpp:30: error: variable or field ‘setCode’ declared void
nast_node.cpp:30: error: ‘nast_code’ was not declared in this scope
nast_node.cpp:35: error: ‘nast_code’ does not name a type
nast_node.cpp:42: error: ‘nast_node’ has not been declared
nast_node.cpp: In function ‘long int getId()’:
nast_node.cpp:44: error: ‘id’ was not declared in this scope
nast_node.cpp: At global scope:
nast_node.cpp:49: error: ‘nast_node’ has not been declared
nast_node.cpp: In function ‘void setId(long int)’:
nast_node.cpp:51: error: ‘id’ was not declared in this scope
nast_node.cpp: At global scope:
nast_node.cpp:61: error: expected constructor, destructor, or type conversion before ‘*’ token
gmake[1]: *** [nast_node.o] 错误 1
gmake[1]:正在离开目录 `/usr/XOgastan/src/nast'
make: *** [nast.o] 错误 2
这个 是 什么 错误, 是 有于 路径 配置错误?搞了很 长時间了,高手 帮忙 啊 ,先谢了
编译错误,高手帮忙
-
- 帖子: 18311
- 注册时间: 2008-01-09 22:41
Re: 编译错误,高手帮忙
源码就有问题吧!nast_node.cpp:22:28: error: nast/nast_node.h: 没有该文件或目录
你configure通过了吗?
-
- 帖子: 3
- 注册时间: 2011-12-20 18:27