Skip to content

[C++] Hdfs and java dlls fail to load when built for Windows with MSVC #16599

@asfimport

Description

@asfimport

If I build the cpp library with MSVC for windows and try to use the hdfs io interface, the dynamic library loads fail.

The reason is that in file hdfs-internal.cc on two occasions the __WIN32 define is checked instead of _WIN32. The former is not set by MSVC. I checked that these are the only two locations in the arrow library where the flag __WIN32 is used, so all we need to do is replace these two references in hdfs-internal.cc.

Environment: Windows, MSVC
Reporter: Balázs Gosztonyi / @bgosztonyi
Assignee: Balázs Gosztonyi / @bgosztonyi

Note: This issue was originally created as ARROW-1003. Please see the migration documentation for further details.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions