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

[SOLVED] Eigen and stlport problem+fix, please confirm

Tags: None
(comma "," separated)
sweber
Registered Member
Posts
17
Karma
0
Hi!

It seems that Eigen is used by everyone exclusivley with the standard gcc stl. For some reasons, I want to use the sgi stlport flavour which fails to build with gcc 4.3 as some ei_pow declarations break the sgi provided versions. The reason here for the failure is the usage of pow(int&, int&) in case gcc 4.3 is used. Now, building things with gcc 4.2 solves the problem. However, this is not really nice!

My system is an ubuntu 9.04 equiped with gcc 4.3, eigen 2.0.3 and stlport 5.2.1.

Ok, that was the problem, the solution is simple: replace in the file Eigen/src/Core/MathFunctions.h the line

#if EIGEN_GNUC_AT_LEAST(4,3)

with

#if EIGEN_GNUC_AT_LEAST(4,3) && (!defined __SGI_STL)

Could someone confirm this and comit it to the repos?? Thanks!

Sebastian
User avatar
ggael
Moderator
Posts
3447
Karma
19
OS
this was already fixed in the devel branch, and now I fixed it in the 2.0.x branch as well.


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Sogou [Bot]