Skip to content

ole32.lib is not linkable by default under the Windows SDK #89241

@bruxisma

Description

@bruxisma

Description

When an API calls the Drag and Drop functions in Win32 APIs (such as SDL, which calls both RegisterDragDrop and RevokeDragDrop), users need to manually link the ole32.libfile manually as thelink` definition is missing from the Windows and WindowsExperimental SDK's modulemap files

Reproduction

Try calling anything inside of ole2.h on Windows in C, C++, or Swift code.

Expected behavior

That it will compile and link.

Environment

Swift version 6.3.2 (swift-6.3.2-RELEASE)
Target: x86_64-unknown-windows-msvc
Build config: +assertions

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    triage neededThis issue needs more specific labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions