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 3071

Summary: undefined reference to `Mix_GetSoundFonts'
Product: SDL_mixer Reporter: Amit Jain <amit.jain83>
Component: miscAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 CC: amit.jain83
Version: 2.0.0   
Hardware: x86   
OS: Linux   
Attachments: Attach patch resolve this linking error by placing #ifdef MID_MUSIC in correct place.

Description Amit Jain 2015-07-24 08:49:55 UTC
When SDL_mixer is build using --disable-music-midi option and user calls “Mix_GetSoundFonts” method, following error will be displayed.

 /tmp/cc7zRrPb.o: In function `main':
 test.c:(.text+0x1a): undefined reference to `Mix_GetSoundFonts'
 collect2: ld returned 1 exit status
Comment 1 Amit Jain 2015-07-24 08:52:04 UTC
Created attachment 2226 [details]
Attach patch resolve this linking error by placing #ifdef MID_MUSIC in correct place.
Comment 2 Amit Jain 2015-08-03 06:17:47 UTC
Hello Sam & Ryan

Any updates for this patch ?
Comment 3 Amit Jain 2015-11-05 05:41:49 UTC
Hello 

Please review & provide update for this.

Amit Jain
Comment 4 Sam Lantinga 2017-10-13 05:37:03 UTC
Mix_GetSoundFonts() isn't a public API, so if fluidsynth isn't compiled into SDL_mixer, that function shouldn't exist.

Is there a use case for officially exposing that function?
Comment 5 Sam Lantinga 2017-10-14 08:45:04 UTC
Actually you're right, these are public APIs.
Comment 6 Sam Lantinga 2017-10-14 08:50:40 UTC
Fixed, thanks!
https://hg.libsdl.org/SDL_mixer/rev/1e215d1f9492