Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: need help with program crashing/undefined symbol..  (Read 2668 times)

0 Members and 1 Guest are viewing this topic.

drarem

  • Newbie
  • *
  • Posts: 5
    • View Profile
need help with program crashing/undefined symbol..
« on: May 16, 2012, 10:36:18 pm »
Using QT and trying to use SFML audio, I get this when trying to run my program:

symbol lookup error: /usr/local/lib/libsfml-audio.so.1.6: undefined symbol: _ZTIN2sf6ThreadE
exited with code 127

I'm using the following setup/test:

INCLUDEPATH += /usr/include/SFML
LIBS += -lsfml-window -lsfml-graphics -lsfml-system -lsfml-audio -lsfml-network


    sf::SoundBuffer Buffer;
    if (!Buffer.LoadFromFile("bounce.ogg"))
        exit(1);

    unsigned int SampleRate = Buffer.GetSampleRate();
    unsigned int Channels   = Buffer.GetChannelsCount();

    // Create a sound instance and play it
    sf::Sound Sound(Buffer);
    Sound.Play();
« Last Edit: May 16, 2012, 10:39:43 pm by Laurent »

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: need help with program crashing/undefined symbol..
« Reply #1 on: May 16, 2012, 10:40:28 pm »
How did you install SFML?

Do you have (or did you have) several versions installed?
Laurent Gomila - SFML developer

drarem

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: need help with program crashing/undefined symbol..
« Reply #2 on: May 16, 2012, 10:42:26 pm »
Installed via packing and ubuntu 12.04

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: need help with program crashing/undefined symbol..
« Reply #3 on: May 17, 2012, 10:12:00 am »
In fact the answer to this problem is explained in the gcc tutorial. So I let you read it carefully :)
Laurent Gomila - SFML developer