title: How to solve this [All] Error 2 in this case?
body: <p>So I coding a simple tensor with Eigen as follows:</p>
  <pre><code>#define _USE_MATH_DEFINES
  #include &lt;iostream&gt;
  #include &lt;cmath&gt;
  #include &lt;Eigen/Dense&gt;
  #include &lt;unsupported/Eigen/CXX11/Tensor&gt;
  
  using namespace Eigen;
  using namespace std;
  
  int main () {
      Tensor&lt;double, 3&gt; A(4,5,6);  // 3 dimensions (4x5x6)
      A.setZero();
      A(0,1,2) = 1.7;
      A(1,2,2) = -1.5;
      cout&lt;&lt;A(1,2,2)&lt;&lt;endl;
      return 0;
  }
  </code></pre>
  <p>But then I get the following error and I looked around the internet for help, but sadly I am still clueless. I always get this error with my more advanced code, so I decided to do a small code just to test when I get this error. Note: I didn't get this error when I was did the same with an Eigen matrix. Only when I changed to a tensor, did I get this error. Then afterwards I changed it back to a matrix and I somehow get the same error now? However, even in my more advanced code I don't even have any tensors, but for some reason still get this error. Can someone please help me as this is driving me insane?</p>
  <pre><code>C:\WINDOWS\system32\cmd.exe /C C:/MinGW/bin/mingw32-make.exe -j4 SHELL=cmd.exe -e -f  Makefile
  &quot;----------Building project:[ Test - Debug ]----------&quot;
  mingw32-make.exe[1]: Entering directory 'C:/Users/RS3/Desktop/SCC HiWi/Code/C++/myGmm/UQ/Test'
  mingw32-make.exe[1]: Leaving directory 'C:/Users/RS3/Desktop/SCC HiWi/Code/C++/myGmm/UQ/Test'
  mingw32-make.exe[1]: Entering directory 'C:/Users/RS3/Desktop/SCC HiWi/Code/C++/myGmm/UQ/Test'
  C:/MinGW/bin/g++.exe  -c  &quot;C:/Users/RS3/Desktop/SCC HiWi/Code/C++/myGmm/UQ/Test/main.cpp&quot; -std=c++14 -Wall -g -O0 -Wall  -o ./Debug/main.cpp.o -I. -I&quot;C:\Users\RS3\Desktop\SCC HiWi\Code\C++\myGmm\UQ\eigen-3.3.9&quot; -I&quot;C:\Users\RS3\Desktop\SCC HiWi\Code\C++\myGmm\UQ\Halton&quot; -I&quot;C:\Users\RS3\Desktop\SCC HiWi\Code\C++\myGmm\UQ\quasimvnrnd&quot; -I&quot;C:\Users\RS3\Desktop\SCC HiWi\Code\C++\myGmm\UQ\dirent\dirent-master\include&quot;
  In file included from C:/Users/RS3/Desktop/SCC HiWi/Code/C++/myGmm/UQ/Test/main.cpp:5:
  C:\Users\RS3\Desktop\SCC HiWi\Code\C++\myGmm\UQ\eigen-3.3.9/unsupported/Eigen/CXX11/Tensor:53:17: error: conflicting declaration 'typedef long int int32_t'
   typedef __int32 int32_t;
                   ^~~~~~~
  In file included from c:\mingw\lib\gcc\mingw32\8.2.0\include\stdint.h:9,
                   from c:\mingw\lib\gcc\mingw32\8.2.0\include\c++\cstdint:41,
                   from c:\mingw\lib\gcc\mingw32\8.2.0\include\c++\bits\char_traits.h:501,
                   from c:\mingw\lib\gcc\mingw32\8.2.0\include\c++\ios:40,
                   from c:\mingw\lib\gcc\mingw32\8.2.0\include\c++\ostream:38,
                   from c:\mingw\lib\gcc\mingw32\8.2.0\include\c++\iostream:39,
                   from C:/Users/RS3/Desktop/SCC HiWi/Code/C++/myGmm/UQ/Test/main.cpp:2:
  c:\mingw\include\stdint.h:62:15: note: previous declaration as 'typedef int int32_t'
   typedef int   int32_t;
                 ^~~~~~~
  In file included from C:/Users/RS3/Desktop/SCC HiWi/Code/C++/myGmm/UQ/Test/main.cpp:5:
  C:\Users\RS3\Desktop\SCC HiWi\Code\C++\myGmm\UQ\eigen-3.3.9/unsupported/Eigen/CXX11/Tensor:54:26: error: conflicting declaration 'typedef long unsigned int uint32_t'
   typedef unsigned __int32 uint32_t;
                            ^~~~~~~~
  In file included from c:\mingw\lib\gcc\mingw32\8.2.0\include\stdint.h:9,
                   from c:\mingw\lib\gcc\mingw32\8.2.0\include\c++\cstdint:41,
                   from c:\mingw\lib\gcc\mingw32\8.2.0\include\c++\bits\char_traits.h:501,
                   from c:\mingw\lib\gcc\mingw32\8.2.0\include\c++\ios:40,
                   from c:\mingw\lib\gcc\mingw32\8.2.0\include\c++\ostream:38,
                   from c:\mingw\lib\gcc\mingw32\8.2.0\include\c++\iostream:39,
                   from C:/Users/RS3/Desktop/SCC HiWi/Code/C++/myGmm/UQ/Test/main.cpp:2:
  c:\mingw\include\stdint.h:63:19: note: previous declaration as 'typedef unsigned int uint32_t'
   typedef unsigned  uint32_t;
                     ^~~~~~~~
  mingw32-make.exe[1]: *** [Debug/main.cpp.o] Error 1
  Test.mk:97: recipe for target 'Debug/main.cpp.o' failed
  mingw32-make.exe[1]: Leaving directory 'C:/Users/RS3/Desktop/SCC HiWi/Code/C++/myGmm/UQ/Test'
  mingw32-make.exe: *** [All] Error 2
  Makefile:4: recipe for target 'All' failed
  ====1 errors, 4 warnings====
  </code></pre>
  <p>UPDATE: When I remove the last include and do the Eigen matrix again, there's no problem. So the problem is with the last include. But without it, I can't work with tensors. What should I do to work with tensors without the error?</p>