Skip to content

Compile fail with MinGW-w64 on Windows #95

Closed
@ghost

Description

I got this error:

IlmImf/ImfSystemSpecific.h: In function 'void* Imf_2_1::EXRAllocAligned(size_t,
size_t)':
IlmImf/ImfSystemSpecific.h:64:41: error: 'posix_memalign' was not declared in th
is scope
     posix_memalign(&ptr, alignment, size);
                                         ^

There's #ifdef __GNUC__ in code which enables that part, it should be #if defined(__GNUC__) && !defined(__MINGW32__)

Metadata

Assignees

No one assigned

    Labels

    BuildA problem with building or installing the library.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions