'SFML: Unable to run code because of soundbuffer error

I came across a problem that wouldn't let me play sounds on SFML. Whenever I call the sf::SoundBuffer buffer; object, the code would break and spit out an error.

I either think its a problem inside the makefile. Other than that, I'm completely lost in what to do

Sample of makefile:

all: compile link

compile:
    g++ -I src/include -c main.cpp
link:
    g++ main.o -o Sorter -L src/lib -l sfml-audio -l sfml-graphics -l sfml-window -l sfml-system

Picture of the error



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source