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

Author Topic: SFML linking problems  (Read 2596 times)

0 Members and 1 Guest are viewing this topic.

hack006

  • Newbie
  • *
  • Posts: 5
    • View Profile
SFML linking problems
« 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

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
SFML linking problems
« Reply #1 on: November 23, 2010, 08:02:09 am »
In your .pro:
Code: [Select]
LIBS += -Lpath/to/your/sfml/directory/lib -lsfml-audio
Laurent Gomila - SFML developer

hack006

  • Newbie
  • *
  • Posts: 5
    • View Profile
Thanks
« Reply #2 on: November 23, 2010, 11:59:00 pm »
Thank u very much. U have helped me a lot.  :)