This bugzilla service is closed. All entries have been migrated to
Bug 943 - Probs compileling against windows mobile 5.0 Pocket PC
Summary: Probs compileling against windows mobile 5.0 Pocket PC
Status: RESOLVED DUPLICATE of bug 619
Alias: None
Product: Eigen
Classification: Unclassified
Component: SVD (show other bugs)
Version: unspecified
Hardware: ARM - general Windows
: Normal Compilation Problem
Assignee: Nobody
Depends on:
Reported: 2015-01-30 11:33 UTC by dmnlarsen
Modified: 2019-12-04 14:09 UTC (History)
2 users (show)


Description dmnlarsen 2015-01-30 11:33:58 UTC
I have a major problem, Eigen works perfect, everything is sweet, only i need to compile against windows mobile 5.0 Pocket PC, and then i loose precision (i have of course set it to strickt an no contraction)

got this error: 

documents\visual studio 2008\projects\eigen\src/QR/ColPivHouseholderQR.h(497) : warning C4244: 'argument' : conversion from 'double' to 'int', possible loss of data

which makes the result at my calculations of SVD 1.0 instead of 0.998 ... not even close enough, i need the double
Comment 1 Gael Guennebaud 2015-01-30 18:31:31 UTC
This is because the STL of VS is bugged on windows mobile, std::abs is missing for float/double. You can workaround by defining:

namespace std {
  inline double abs(double x)
    return fabs(x);
Comment 2 Gael Guennebaud 2015-01-30 18:36:05 UTC
In de devel branch we have a workaround: But since nobody confirmed that this does the job, the workaround has not been backported yet. Si please try it and let us know so that be can backport it.

*** This bug has been marked as a duplicate of bug 619 ***
Comment 3 Nobody 2019-12-04 14:09:27 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance:

Note You need to log in before you can comment on or make changes to this bug.