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 - undefined reference to `Mix_GetSoundFonts'
Summary: undefined reference to `Mix_GetSoundFonts'
Status: RESOLVED FIXED
Alias: None
Product: SDL_mixer
Classification: Unclassified
Component: misc (show other bugs)
Version: 2.0.0
Hardware: x86 Linux
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-24 08:49 UTC by Amit Jain
Modified: 2017-10-14 08:50 UTC (History)
1 user (show)

See Also:


Attachments
Attach patch resolve this linking error by placing #ifdef MID_MUSIC in correct place. (1.00 KB, patch)
2015-07-24 08:52 UTC, Amit Jain
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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