We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 2581

Summary: Static Linker Error
Product: SDL_mixer Reporter: taekwonbilly
Component: miscAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED INVALID QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: 2.0.0   
Hardware: x86_64   
OS: Windows 8   

Description taekwonbilly 2014-06-12 22:13:47 UTC
I run into the following when trying to link to SDL2_mixer statically

C:\msys64\mingw64/lib\libSDL2_mixer.a(dynamic_modplug.o):(.text+0xd): undefined reference to `__imp_ModPlug_Load'
C:\msys64\mingw64/lib\libSDL2_mixer.a(dynamic_modplug.o):(.text+0x1b): undefined reference to `__imp_ModPlug_Unload'
C:\msys64\mingw64/lib\libSDL2_mixer.a(dynamic_modplug.o):(.text+0x29): undefined reference to `__imp_ModPlug_Read'
C:\msys64\mingw64/lib\libSDL2_mixer.a(dynamic_modplug.o):(.text+0x37): undefined reference to `__imp_ModPlug_Seek'
C:\msys64\mingw64/lib\libSDL2_mixer.a(dynamic_modplug.o):(.text+0x45): undefined reference to `__imp_ModPlug_GetSettings'
C:\msys64\mingw64/lib\libSDL2_mixer.a(dynamic_modplug.o):(.text+0x53): undefined reference to `__imp_ModPlug_SetSettings'
C:\msys64\mingw64/lib\libSDL2_mixer.a(dynamic_modplug.o):(.text+0x61): undefined reference to `__imp_ModPlug_SetMasterVolume'
Comment 1 Sam Lantinga 2014-06-16 00:24:59 UTC
You need to also link with something like libmodplug.a that is an import library for the modplug DLL.