This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Visual Studio 2022 Eigen error 2234

Tags: None
(comma "," separated)
worldmaster
Registered Member
Posts
1
Karma
0

Visual Studio 2022 Eigen error 2234

Wed Dec 21, 2022 5:58 am
Hello. I had a problem compiling a simple program for eugen on Visual Studio 2022.
I installed a set of eigen sources as shown in the instructions.
https://eigen.tuxfamily.org/dox/GettingStarted.html

I wrote the simplest program and an error appears during compile.
Code: Select all
#include "Core"
#include "SVD"
#include "Dense"

using namespace Eigen;

int main()
{
MatrixXf m;
   m << 1.0, -3.0, 5.0,
      1.0, 3.0, 3.0,
      1.0, 2.0, -4.0,
      1.0, -5.0, 2.0,
      1.0, -1.0, 0.0;
}

Error
https://learn.microsoft.com/sv-se/cpp/error-messages/compiler-errors-1/compiler-error-c2234?view=msvc-150


Error C2234 v27: arrays of references are illegal C:\Delme\TestForForumC++\TestForForumC++\eigen-3.4.0\Eigen\src\Core\NumTraits.h 85
Error C2234 v27: arrays of references are illegal C:\Delme\TestForForumC++\TestForForumC++\eigen-3.4.0\Eigen\src\Core\arch\Default\Half.h 850
Error C2234 v27: arrays of references are illegal C:\Delme\TestForForumC++\TestForForumC++\eigen-3.4.0\Eigen\src\Core\arch\Default\Half.h 855
Error C2234 v27: arrays of references are illegal C:\Delme\TestForForumC++\TestForForumC++\eigen-3.4.0\Eigen\src\Core\arch\Default\BFloat16.h 676
Error C2234 v27: arrays of references are illegal C:\Delme\TestForForumC++\TestForForumC++\eigen-3.4.0\Eigen\src\Core\arch\Default\BFloat16.h 681
Error C2234 v27: arrays of references are illegal C:\Delme\TestForForumC++\TestForForumC++\eigen-3.4.0\Eigen\src\Core\AssignEvaluator.h 633
Error C2234 v27: arrays of references are illegal C:\Delme\TestForForumC++\TestForForumC++\eigen-3.4.0\Eigen\src\Core\AssignEvaluator.h 738
Error C2234 v27: arrays of references are illegal C:\Delme\TestForForumC++\TestForForumC++\eigen-3.4.0\Eigen\src\Core\AssignEvaluator.h 750


How to fix the error?
Thanks.


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], kesang, Yahoo [Bot]