美文网首页遗传学
KaKs_Calculator2.0安装出错

KaKs_Calculator2.0安装出错

作者: bioinfo2011 | 来源:发表于2019-10-31 18:57 被阅读0次

安装KaKs_Calculator2.0的时候会报错,比如

KaKs.cpp:756:28: error: ‘strlen’ was not declared in this scope 

 GY94.cpp:238:23: error: ‘strcpy’ was not declared in this scope

解决办法:

KaKs.cpp  文件开头增加一行  #include "string.h"

AXTConvertor.cpp  文件开头增加一行  #include "stdlib.h"

GY94.cpp  文件开头增加一行  #include "string.h"

其实我猜用  #include<string.h>也可以,双引号代表先从文件所在的目录开始搜索,尖括号代表从系统目录开始搜索,也就是先搜索哪里的问题,可能会影响程序的效率

参考文献:

http://blog.sina.com.cn/s/blog_83f77c940102xe2e.html

http://www.360doc.com/content/14/0511/11/17302338_376623800.shtml

相关文章

网友评论

    本文标题:KaKs_Calculator2.0安装出错

    本文链接:https://www.haomeiwen.com/subject/tuotbctx.html