SFML community forums
Help => Audio => Topic started by: stewart on April 13, 2010, 11:51:01 am
-
Hey guys I am getting
Line Location Tool:0: collect2: ld returned 1 exit status
Line Location Tool:0: "sf::SoundBuffer::SoundBuffer()", referenced from:
Line Location Tool:0: symbol(s) not found
Line Location Tool:0: _main in main.o
Line Location Tool:0: _main in main.o
Line Location Tool:0: "sf::SoundBuffer::~SoundBuffer()", referenced from:
Line Location Tool:0: _main in main.o
why i try and run
#include <SFML/Audio.hpp>
int main()
{
sf::SoundBuffer test;
}
Running macosx 10.5 with xcode...
All of the SFML/graphics.hpp classes seem to work fine as I have them building and working. However when I try and do anything with audio i get the above.
-
Are you linking with sfml-audio?
-
Are you linking with sfml-audio?
not totally sure. I am quite new to c++. I used installed the xcode project and I have just been developing in that.
-
Are you linking with sfml-audio?
not totally sure. I am quite new to c++. I used installed the xcode project and I have just been developing in that.
Nevermind. Worked it out. So for anyone who had this trouble its very easy to fix. You just need to add the audio framework to your project.
1. Head to frameworks in the groups and files section
2. right click
3. click add existing framework
4. the audo frame work can be found in /library/sfml.audo.framework under MacHD
5. Code :)