Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/cplusplus/130.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C++ Visual Studio 2013在I';我在试着编译Eigen_C++_Visual Studio 2013_Crash_Eigen - Fatal编程技术网

C++ Visual Studio 2013在I';我在试着编译Eigen

C++ Visual Studio 2013在I';我在试着编译Eigen,c++,visual-studio-2013,crash,eigen,C++,Visual Studio 2013,Crash,Eigen,以下简化代码: #include "Eigen/Core" template <int n> Eigen::Matrix<float, 1, n> init_array(float a) { Eigen::Matrix<float, 1, n> res; res.fill(a); return res; } int main() { Eigen::Matrix<float, 1, 3> a = init_arra

以下简化代码:

#include "Eigen/Core"

template <int n>
Eigen::Matrix<float, 1, n> init_array(float a)
{
    Eigen::Matrix<float, 1, n> res;
    res.fill(a);
    return res;
}

int main()
{
    Eigen::Matrix<float, 1, 3> a = init_array<3>(1.0f);
}
我下载了最新版本的Egen 3.2.5。 我有Visual Studio Professional 2013版本12.0.21005.1


有人知道解决方法吗?

我也遇到过同样的问题。显然,您应该更新Visual Studio 2013。这对我有用。
这个问题,他们在更新2中修复了它(当前是5)

我也遇到了同样的问题。显然,您应该更新Visual Studio 2013。这对我有用。
这个问题,他们在更新2中解决了它(当前是5)

包含“Eigen\Core”的
是否在Windows上实际工作?对于可移植性,至少应该是
#包括“Eigen/Core”
。如果我稍微更改代码(例如删除函数的参数
float a
),一切都会正常工作。这并不是说这会有多大帮助,但是你发布的代码(sry,我不得不更改include stmt,那反斜杠感觉很脏)在VS2010上工作,CL版本:16.00.40219.01。
#include“Eigen\Core”
真的在Windows上工作吗?对于可移植性,至少应该是
#包括“Eigen/Core”
。如果我稍微更改代码(例如删除函数的参数
float a
),一切都会正常工作。这并不是说这会有多大帮助,但您发布的代码(sry,我不得不更改include stmt,反斜杠感觉很脏)在VS2010上工作,CL版本:16.00.40219.01。
main.cpp(13): fatal error C1001: An internal error has occurred in the compiler.
   (compiler file 'msc1.cpp', line 1325)
   To work around this problem, try simplifying or changing the program near the locations listed above.