Visual studio 2013 生成解决方案错误:错误C2065:&x27;prpack IGRAPHE图';:未声明的标识符 \IGRAPHE-0.7.1-msvc\IGRAPHE-0.7.1-msvc\src\prpack.cpp
我下载了Visual studio 2013 生成解决方案错误:错误C2065:&x27;prpack IGRAPHE图';:未声明的标识符 \IGRAPHE-0.7.1-msvc\IGRAPHE-0.7.1-msvc\src\prpack.cpp,visual-studio-2013,igraph,Visual Studio 2013,Igraph,我下载了igraph-0.7.1-msvc.zip并在Visual Studio 2013中打开了igraph.sln,将“bug”更改为“release”,然后构建了解决方案。但它报告了以下错误: IntelliSense: identifier "prpack_igraph_graph" is undefined \igraph-0.7.1-msvc\igraph-0.7.1-msvc\src\prpack.cpp 66 5 igraph Error 312 error C2065
igraph-0.7.1-msvc.zip
并在Visual Studio 2013中打开了igraph.sln
,将“bug”更改为“release”,然后构建了解决方案。但它报告了以下错误:
IntelliSense: identifier "prpack_igraph_graph" is undefined \igraph-0.7.1-msvc\igraph-0.7.1-msvc\src\prpack.cpp 66 5 igraph
Error 312 error C2065: 'prpack_igraph_graph' : undeclared identifier \igraph-0.7.1-msvc\igraph-0.7.1-msvc\src\prpack.cpp 66 1 igraph
Error 313 error C2146: syntax error : missing ';' before identifier 'prpack_graph' \igraph-0.7.1-msvc\igraph-0.7.1-msvc\src\prpack.cpp 66 1 igraph
Error 315 error C2065: 'prpack_graph' : undeclared identifier\igraph-0.7.1-msvc\igraph-0.7.1-msvc\src\prpack.cpp 67 1 igraph
这可能是igraph的MSVC版本中的一个bug;尝试向编译器选项中添加
/DPRPACK\u IGRAPH\u SUPPORT=1
,然后重新编译。这可能是IGRAPH的MSVC版本中的一个bug;尝试将/DPRPACK\u IGRAPH\u SUPPORT=1
添加到编译器选项中,然后重新编译。谢谢Tamas。
详细步骤应该是:转到项目菜单->属性->C/C++->命令行。在其他选项中,添加以下选项:/DPRPACK\u IGRAPH\u SUPPORT=1
在我的博客中查看更多信息:谢谢塔马斯。
详细步骤应该是:转到项目菜单->属性->C/C++->命令行。在其他选项中,添加以下选项:/DPRPACK\u IGRAPH\u SUPPORT=1
在我的博客中查看更多信息:那么你的问题是什么?那么你的问题是什么?