SFML community forums

Help => Audio => Topic started by: hack006 on November 23, 2010, 12:34:16 am

Title: SFML linking problems
Post by: hack006 on November 23, 2010, 12:34:16 am
Hi there, I have a following problem. I am trying to run my test program for making some sound but I am getting linking problems.
error: undefined reference to `sf::SoundBuffer::SoundBuffer()'
 error: undefined reference to `sf::Sound::Sound()'

I know I have to link some libraries but I am pretty confused what parameters and where to place it. I use QT Creator as IDE. Thank you for your help
Title: SFML linking problems
Post by: Laurent on November 23, 2010, 08:02:09 am
In your .pro:
Code: [Select]
LIBS += -Lpath/to/your/sfml/directory/lib -lsfml-audio
Title: Thanks
Post by: hack006 on November 23, 2010, 11:59:00 pm
Thank u very much. U have helped me a lot.  :)