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