Hi All,
I am very new to programming, and I am attempting to create a simple audio player. I am getting an error message when I try and compile the following code:
#include <SFML/Audio/Music.hpp>
int main(int argc, char* argv[])
{
sf::Music music;
return 0;
}
I'm compiling like so:
g++ main.cpp -o main
Here is the error message:
/tmp/ccOEn1HF.o: In function `main':
main.cpp:(.text+0x24): undefined reference to `sf::Music::Music()'
main.cpp:(.text+0x38): undefined reference to `sf::Music::~Music()'
collect2: error: ld returned 1 exit status
Not sure what the problem is!?