0
我已经从http://www.heatonresearch.com/encog/下载了encog-c源文件并尝试使用vs2015社区进行编译。使用vs2015社区进行Encog-c编译错误
当我构建解决方案我收到以下错误:
Severity Code Description Project File Line Suppression State
Error C2059 syntax error: 'sizeof' encog-core C:\Users\ypx7647\Documents\Visual Studio 2015\Projects\encog-c-master\encog-core\util.c 39
Error C2059 syntax error: 'sizeof' encog-core C:\Users\ypx7647\Documents\Visual Studio 2015\Projects\encog-c-master\encog-core\util.c 44
与此连接的问题:
Severity Code Description Project File Line Suppression State
Error LNK1181 cannot open input file 'C:\Users\ypx7647\Documents\Visual Studio 2015\Projects\encog-c-master\Release\encog-core.lib' encog-cmd C:\Users\ypx7647\Documents\Visual Studio 2015\Projects\encog-c-master\encog-cmd\LINK 1
我不sunderstand错误代码(这里的代码):
#ifdef _MSC_VER
int isnan(double x)
{
return x != x;
}
int isinf(double x)
{
return !isnan(x) && isnan(x - x);
}
#endif
对于链接器错误,我无法找到encog-c-core.lib文件,因此无法将其添加到其他l链接器目录。
我在做什么错?还有什么需要在环境中设置以便编译源代码。
在此先感谢您的帮助。
其实我错了。如下所示,我从https://github.com/encog下载了源代码,而不是http://www.heatonresearch.com/encog/。 – Andrew