编译错误,高手帮忙

编译打包和其他
回复
siheng303
帖子: 18
注册时间: 2010-03-22 19:42

编译错误,高手帮忙

#1

帖子 siheng303 » 2010-04-06 20:19

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
这个 是 什么 错误, 是 有于 路径 配置错误?搞了很 长時间了,高手 帮忙 啊 ,先谢了
delectate
帖子: 18311
注册时间: 2008-01-09 22:41

Re: 编译错误,高手帮忙

#2

帖子 delectate » 2010-04-06 21:03

nast_node.cpp:22:28: error: nast/nast_node.h: 没有该文件或目录
源码就有问题吧!

你configure通过了吗?
fancyfeeling
帖子: 3
注册时间: 2011-12-20 18:27

Re: 编译错误,高手帮忙

#3

帖子 fancyfeeling » 2012-03-31 10:05

楼主解决这个问题没?我现在也遇到了这个问题,不知道怎么解决啊?
如果楼主已经解决,希望能给予帮助,不胜感激!
[email protected]
回复