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.