Skip to content

Instantly share code, notes, and snippets.

@savolla
Created June 22, 2019 19:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save savolla/213cbec0b39cb2821983cbf77f986c5a to your computer and use it in GitHub Desktop.
Save savolla/213cbec0b39cb2821983cbf77f986c5a to your computer and use it in GitHub Desktop.
/usr/bin/ld: /tmp/ccagaCZR.o: in function `LTexture::loadFromFile(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)':
21_sound_effects_and_music.cpp:(.text+0x7d): undefined reference to `IMG_Load'
/usr/bin/ld: /tmp/ccagaCZR.o: in function `init()':
21_sound_effects_and_music.cpp:(.text+0x47e): undefined reference to `IMG_Init'
/usr/bin/ld: 21_sound_effects_and_music.cpp:(.text+0x4c0): undefined reference to `Mix_OpenAudio'
/usr/bin/ld: /tmp/ccagaCZR.o: in function `loadMedia()':
21_sound_effects_and_music.cpp:(.text+0x579): undefined reference to `Mix_LoadMUS'
/usr/bin/ld: 21_sound_effects_and_music.cpp:(.text+0x5c9): undefined reference to `Mix_LoadWAV_RW'
/usr/bin/ld: 21_sound_effects_and_music.cpp:(.text+0x619): undefined reference to `Mix_LoadWAV_RW'
/usr/bin/ld: 21_sound_effects_and_music.cpp:(.text+0x669): undefined reference to `Mix_LoadWAV_RW'
/usr/bin/ld: 21_sound_effects_and_music.cpp:(.text+0x6b9): undefined reference to `Mix_LoadWAV_RW'
/usr/bin/ld: /tmp/ccagaCZR.o: in function `close()':
21_sound_effects_and_music.cpp:(.text+0x754): undefined reference to `Mix_FreeChunk'
/usr/bin/ld: 21_sound_effects_and_music.cpp:(.text+0x763): undefined reference to `Mix_FreeChunk'
/usr/bin/ld: 21_sound_effects_and_music.cpp:(.text+0x772): undefined reference to `Mix_FreeChunk'
/usr/bin/ld: 21_sound_effects_and_music.cpp:(.text+0x781): undefined reference to `Mix_FreeChunk'
/usr/bin/ld: 21_sound_effects_and_music.cpp:(.text+0x7bc): undefined reference to `Mix_FreeMusic'
/usr/bin/ld: 21_sound_effects_and_music.cpp:(.text+0x800): undefined reference to `Mix_Quit'
/usr/bin/ld: 21_sound_effects_and_music.cpp:(.text+0x805): undefined reference to `IMG_Quit'
/usr/bin/ld: /tmp/ccagaCZR.o: in function `main':
21_sound_effects_and_music.cpp:(.text+0x8f1): undefined reference to `Mix_PlayChannelTimed'
/usr/bin/ld: 21_sound_effects_and_music.cpp:(.text+0x914): undefined reference to `Mix_PlayChannelTimed'
/usr/bin/ld: 21_sound_effects_and_music.cpp:(.text+0x937): undefined reference to `Mix_PlayChannelTimed'
/usr/bin/ld: 21_sound_effects_and_music.cpp:(.text+0x957): undefined reference to `Mix_PlayChannelTimed'
/usr/bin/ld: 21_sound_effects_and_music.cpp:(.text+0x95e): undefined reference to `Mix_PlayingMusic'
/usr/bin/ld: 21_sound_effects_and_music.cpp:(.text+0x97b): undefined reference to `Mix_PlayMusic'
/usr/bin/ld: 21_sound_effects_and_music.cpp:(.text+0x982): undefined reference to `Mix_PausedMusic'
/usr/bin/ld: 21_sound_effects_and_music.cpp:(.text+0x991): undefined reference to `Mix_ResumeMusic'
/usr/bin/ld: 21_sound_effects_and_music.cpp:(.text+0x998): undefined reference to `Mix_PauseMusic'
/usr/bin/ld: 21_sound_effects_and_music.cpp:(.text+0x99f): undefined reference to `Mix_HaltMusic'
collect2: error: ld returned 1 exit status
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment