当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 5 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : 大虾们帮忙看看,一个软件G++编译总是错误
帖子发表于 : 2010-03-05 22:05 

注册: 2010-01-22 19:04
帖子: 2
送出感谢: 0 次
接收感谢: 0 次
这个软件是网上下载的,说明文件里说是好用的。但我怎么都装不上,错误提示如下:

In file included from dme2.cpp:21:
cread/cread.hpp:52:18: error: popt.h: 没有该文件或目录
In file included from dme2.cpp:21:
cread/cread.hpp: In function ‘std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > cread::split(std::string, const char*, bool)’:
cread/cread.hpp:114: error: ‘strlen’ was not declared in this scope
dme2.cpp: In function ‘int main(int, const char**)’:
dme2.cpp:864: error: ‘POPT_ARG_NONE’ was not declared in this scope
dme2.cpp:870: error: ‘POPT_ARG_STRING’ was not declared in this scope
dme2.cpp:878: error: ‘POPT_ARG_INT’ was not declared in this scope
dme2.cpp:878: error: ‘POPT_ARGFLAG_SHOW_DEFAULT’ was not declared in this scope
dme2.cpp:890: error: ‘POPT_ARG_FLOAT’ was not declared in this scope
dme2.cpp:894: error: ‘POPT_ARGFLAG_DOC_HIDDEN’ was not declared in this scope
dme2.cpp:924: error: ‘POPT_AUTOHELP’ was not declared in this scope
dme2.cpp:924: error: expected ‘}’ before ‘POPT_TABLEEND’
dme2.cpp:924: error: elements of array ‘poptOption optionsTable []’ have incomplete type
dme2.cpp:924: error: storage size of ‘optionsTable’ isn't known
dme2.cpp:924: error: expected ‘,’ or ‘;’ before ‘POPT_TABLEEND’
dme2.cpp:821: warning: unused variable ‘motif_prep_progress_prefix’
dme2.cpp:823: warning: unused variable ‘fgfilename’
dme2.cpp:859: warning: unused variable ‘required_improvement’
dme2.cpp:862: warning: unused variable ‘optionsTable’
dme2.cpp:925: error: expected ‘catch’ before ‘;’ token
dme2.cpp:925: error: expected ‘(’ before ‘;’ token
dme2.cpp:925: error: expected type-specifier before ‘;’ token
dme2.cpp:925: error: expected ‘)’ before ‘;’ token
dme2.cpp:925: error: expected ‘{’ before ‘;’ token
dme2.cpp:928: error: ‘poptContext’ was not declared in this scope
dme2.cpp:928: error: expected ‘;’ before ‘optCon’
dme2.cpp:929: error: ‘optCon’ was not declared in this scope
dme2.cpp:929: error: ‘poptSetOtherOptionHelp’ was not declared in this scope
dme2.cpp:931: error: ‘poptPrintHelp’ was not declared in this scope
dme2.cpp:935: error: ‘poptGetNextOpt’ was not declared in this scope
dme2.cpp:937: error: ‘POPT_BADOPTION_NOALIAS’ was not declared in this scope
dme2.cpp:937: error: ‘poptBadOption’ was not declared in this scope
dme2.cpp:938: error: ‘poptStrerror’ was not declared in this scope
dme2.cpp:941: error: ‘poptPeekArg’ was not declared in this scope
dme2.cpp:942: error: ‘poptPrintHelp’ was not declared in this scope
dme2.cpp:945: error: ‘fgfilename’ was not declared in this scope
dme2.cpp:945: error: ‘poptGetArg’ was not declared in this scope
dme2.cpp:946: error: ‘poptPeekArg’ was not declared in this scope
dme2.cpp:947: error: ‘poptGetArg’ was not declared in this scope
dme2.cpp:950: error: ‘poptFreeContext’ was not declared in this scope
dme2.cpp:954: error: ‘motif_width’ was not declared in this scope
dme2.cpp:954: error: ‘bits’ was not declared in this scope
dme2.cpp:964: error: ‘ZOOPS’ was not declared in this scope
dme2.cpp:965: error: ‘TCM’ was not declared in this scope
dme2.cpp:968: error: ‘fgfilename’ was not declared in this scope
dme2.cpp:968: error: ‘bgfilename’ was not declared in this scope
dme2.cpp:973: error: ‘outputs’ was not declared in this scope
dme2.cpp:973: error: ‘granularity’ was not declared in this scope
dme2.cpp:974: error: ‘correction’ was not declared in this scope
dme2.cpp:974: error: ‘ratio_adjust’ was not declared in this scope
dme2.cpp:977: error: ‘refine_granularity’ was not declared in this scope
dme2.cpp:978: error: ‘n_changes’ was not declared in this scope
dme2.cpp:978: error: ‘n_iterations’ was not declared in this scope
dme2.cpp:978: error: ‘required_improvement’ was not declared in this scope
dme2.cpp:983: error: ‘TCM’ was not declared in this scope
dme2.cpp:984: error: ‘fgfilename’ was not declared in this scope
dme2.cpp:984: error: ‘bgfilename’ was not declared in this scope
dme2.cpp:990: error: ‘outputs’ was not declared in this scope
dme2.cpp:990: error: ‘granularity’ was not declared in this scope
dme2.cpp:991: error: ‘correction’ was not declared in this scope
dme2.cpp:991: error: ‘ratio_adjust’ was not declared in this scope
dme2.cpp:994: error: ‘refine_granularity’ was not declared in this scope
dme2.cpp:995: error: ‘n_changes’ was not declared in this scope
dme2.cpp:995: error: ‘n_iterations’ was not declared in this scope
dme2.cpp:995: error: ‘required_improvement’ was not declared in this scope
dme2.cpp:999: error: ‘fgfilename’ was not declared in this scope
dme2.cpp:999: error: ‘bgfilename’ was not declared in this scope
dme2.cpp:1005: error: ‘outputs’ was not declared in this scope
dme2.cpp:1005: error: ‘granularity’ was not declared in this scope
dme2.cpp:1006: error: ‘correction’ was not declared in this scope
dme2.cpp:1006: error: ‘ratio_adjust’ was not declared in this scope
dme2.cpp:1009: error: ‘refine_granularity’ was not declared in this scope
dme2.cpp:1010: error: ‘n_changes’ was not declared in this scope
dme2.cpp:1010: error: ‘n_iterations’ was not declared in this scope
dme2.cpp:1010: error: ‘required_improvement’ was not declared in this scope
dme2.cpp:1020: error: ‘TCM’ was not declared in this scope
dme2.cpp:1023: error: ‘motif_prep_progress_prefix’ was not declared in this scope
dme2.cpp:1025: error: ‘accession_prefix’ was not declared in this scope
dme2.cpp:1026: error: ‘correction’ was not declared in this scope
dme2.cpp:1029: error: ‘singlestrand’ was not declared in this scope
dme2.cpp:1037: error: ‘motif_prep_progress_prefix’ was not declared in this scope
dme2.cpp:1039: error: ‘accession_prefix’ was not declared in this scope
dme2.cpp:1040: error: ‘correction’ was not declared in this scope
dme2.cpp:1043: error: ‘singlestrand’ was not declared in this scope
dme2.cpp:1055: error: ‘outfilename’ was not declared in this scope
dme2.cpp: At global scope:
dme2.cpp:1060: error: expected unqualified-id before ‘catch’
dme2.cpp:1064: error: expected unqualified-id before ‘catch’
dme2.cpp:1068: error: expected unqualified-id before ‘return’
dme2.cpp:1069: error: expected declaration before ‘}’ token
make: *** [dme2.o] 错误 1


页首
 用户资料  
 
2 楼 
 文章标题 : Re: 大虾们帮忙看看,一个软件G++编译总是错误
帖子发表于 : 2010-03-05 22:23 
头像

注册: 2008-12-13 19:39
帖子: 13284
地址: 物华天宝人杰地灵
送出感谢: 1
接收感谢: 6
先看configure后缺啥。。。看提示,可能缺依赖包和头文件。 :em06


_________________
行到水穷处,坐看云起时。
海内生明月,天涯共此夕。
--------------------吾本独!


页首
 用户资料  
 
3 楼 
 文章标题 : Re: 大虾们帮忙看看,一个软件G++编译总是错误
帖子发表于 : 2010-03-05 22:26 
头像

注册: 2007-02-02 18:14
帖子: 30702
系统: debian sid
送出感谢: 1
接收感谢: 34
我估计不是Linux的源码是vc之类的或者没有makefile


_________________
醉了星星,醉月亮●●●●●The Long Way To Go(*^_^*)


页首
 用户资料  
 
4 楼 
 文章标题 : Re: 大虾们帮忙看看,一个软件G++编译总是错误
帖子发表于 : 2010-03-06 14:02 

注册: 2006-02-27 10:32
帖子: 267
送出感谢: 0 次
接收感谢: 0 次
安装 libpopt-dev,如果不知道怎么安装,那么不要试图自己编译了。

另外,高版本的gcc对于头文件的检查更严格了(不再自动包含常见的C头文件,例如<strings.h> <stdlib.h>等等),在所有报没有找到类似 strlen(), memcpy()等函数的文件中加入上述头文件。


页首
 用户资料  
 
5 楼 
 文章标题 : Re: 大虾们帮忙看看,一个软件G++编译总是错误
帖子发表于 : 2010-03-06 19:38 

注册: 2010-01-22 19:04
帖子: 2
送出感谢: 0 次
接收感谢: 0 次
谢谢各位,第一次发帖,有这么多热心人,真开心

我试试看:)


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 5 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:243750496 和 3 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译