SDL doesn't play sound - Annoying problem.

Discussion in 'C++' started by imported_hakermania, Aug 31, 2010.

  1. imported_hakermania

    imported_hakermania New Member

    Joined:
    Aug 31, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    This is the code:
    int main()
    {
    Mix_Music *music = NULL;
    music = Mix_LoadMUS("music.ogg");
    Mix_PlayMusic(music, 0);
    }
    It is the simplest program to load a file and play it once.
    The Errors are:
    Code:
    undefined reference to `Mix_LoadMUS'
    undefined reference to `Mix_PlayMusic'
    ld returned 1 exit status
    It is really annoyning because I can't see any errors!
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice