New user self-registration is disabled due to spam. Please email eigen-core-team @ if you need an account.
Before reporting a bug, please make sure that your Eigen version is up-to-date!
Bug 754 - Windows CE compilation problem
Summary: Windows CE compilation problem
Alias: None
Product: Eigen
Classification: Unclassified
Component: General (show other bugs)
Version: 3.2
Hardware: All Windows
: Normal critical
Assignee: Nobody
Depends on:
Reported: 2014-03-05 12:48 UTC by suryp2
Modified: 2014-03-06 11:39 UTC (History)
3 users (show)


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:

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.