KaKs_Calculator2.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也可以,双引号代表先从文件所在的目录开始搜索,尖括号代表从系统目录开始搜索,也就是先搜索哪里的问题,可能会影响程序的效率


参考文献:

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

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

你可能感兴趣的:(KaKs_Calculator2.0安装出错)