New user self-registration is currently disabled. Please email eigen-core-team @ lists.tuxfamily.org if you need an account.
Bug 754 - Windows CE compilation problem
Windows CE compilation problem
Status: RESOLVED FIXED
Product: Eigen
Classification: Unclassified
Component: General
3.2
All Windows
: Normal critical
Assigned To: Nobody
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-03-05 12:48 UTC by suryp2
Modified: 2014-03-06 11:39 UTC (History)
3 users (show)



Attachments

Description suryp2 2014-03-05 12:48:24 UTC
On Windows CE, Eigen\Dense fails to compile with this error:
error C3861: '_aligned_realloc': identifier not found

Looks like aligned_realloc was forgotten when aligned_malloc and aligned_free were fixed for Windows CE in header Memory.h
Comment 1 Gael Guennebaud 2014-03-05 14:46:32 UTC
right. could you attach a patch so that we make sure it's fixed the right way. most of us do not have windows CE to check. thanks.
Comment 2 Christoph Hertzberg 2014-03-05 14:52:07 UTC
I don't have WinCE, but I pushed this:
https://bitbucket.org/eigen/eigen/commits/9c09bf30

If that works, we can transplant it to the 3.2 branch
Comment 3 suryp2 2014-03-06 08:15:43 UTC
Actually, the Christoph's fix is the same like the fix I did myself.
So yes, it works, thanks.

Note: The Memory.h file from the Christoph's bitbucket link contains more changes. I took only those relevant to my issue.
Comment 4 Christoph Hertzberg 2014-03-06 11:39:31 UTC
I essentially guarded both occurrences of _aligned_realloc to be not called in WinCE mode. I transplanted the fix to 3.2 and closing the bug.

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