Registered Member
|
Hi!
Currently trying out Eigen 3.0-beta2 (2010-10-15) There seems to be a problem in file "eigen\Eigen\Core" -- right here:
Despite the claim made in the above comment, there is no "intrin.h" file in MinGW. Tested both under the g++-4.3.0-20080502-mingw32-alpha as well as g++.exe (GCC) 4.5.0 (which is the current official MinGW.org release). Incidentally, neither does "include/windows.h" in any of the above versions include any header file containing "intrin" in its name. This prevents a successful compilation -- e.g. if a file "example.cpp" contains
I've tried two workarounds: (0) comment out #include <intrin.h> (since it doesn't exist on MinGW) (1) since my CPU's ISA is x86, replace it with #include <x86intrin.h> (which exists in MinGW since at least GCC 4.3.0) Then, the code seemingly compiles, but... What is the right'n'proper way to solve it (and why)? |
Registered Member
|
I have had a similar problem recently after I upgraded mingw and eigen. Not sure which one has changed. In any case the new mingw does not have that file and if I comment out the line in the include file, it does compile but when I run my code, memory allocation breaks down. The code compiles and runs with no problem on linux though. I will try changing it to <x86intrin.h> next.
EDIT: Changing to <x86intrin.h> had no effect on the memory allocation then I removed "-msse2" compiler flags and it worked... |
Registered Member
|
Please file a bug about this, and let us know when you've found the fix/work-around. Not all eigen developers read the forum.
Join us on Eigen's IRC channel: #eigen on irc.freenode.net
Have a serious interest in Eigen? Then join the mailing list! |
Registered Member
|
Thanks for the reply, bug report here:
http://eigen.tuxfamily.org/bz/show_bug.cgi?id=125 kavehkh, I'm also experiencing problems, especially when using OpenMP together with SSE2 compilation flags (problems == segfaults that disappear when flags disabled). |
Registered users: Bing [Bot], Evergrowing, Google [Bot], rockscient