Skip to content

[Windows] bundle + static-link - shell32 not linking, possible relation to rust pull #56568 (1.33+) #864

Open
@0x08088405

Description

@0x08088405

The following linker errors occur when trying to build with the bundled + static-link features on Windows:

libsdl2_sys-(snip).rlib(SDL_windowsevents.obj) : error LNK2019: unresolved external symbol __imp_DragQueryFileW referenced in function WIN_WindowProc

libsdl2_sys-(snip).rlib(SDL_windowsevents.obj) : error LNK2019: unresolved external symbol __imp_DragFinish referenced in function WIN_WindowProc

libsdl2_sys-(snip).rlib(SDL_windowsevents.obj) : error LNK2019: unresolved external symbol __imp_ExtractIconExW referenced in function SDL_RegisterApp_REAL

libsdl2_sys-(snip).rlib(SDL_sysfilesystem.obj) : error LNK2019: unresolved external symbol __imp_SHGetFolderPathW referenced in function SDL_GetPrefPath_REAL

libsdl2_sys-(snip).rlib(SDL_windowswindow.obj) : error LNK2019: unresolved external symbol __imp_DragAcceptFiles referenced in function WIN_AcceptDragAndDrop

All of these symbols appear to be from shell32, and I have downgraded to see if it builds on a version that is before pull #56568 (1.32) and sure enough it does. However right here in the build script it instructs it to link shell32, so this is quite puzzling.

No errors occur when building with only the bundled feature which copies the dynamic library.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions