so, i'm using code blocks 16.01 with a TDM 5.1.0 compiler with SFML version 2.5.1, i'm doing a project to convert an RGBA image to ASCII characters using SFML. I'm loading an image in by doing this:
sf::Image img;
if(!img.loadFromFile(file_path))
{
std::cout<<"error loading image"<<std::endl;
}
but instead of the code outputing "error loading image", it gives me an error:
obj\Release\main.o:main.cpp:(.text.startup+0x87)||undefined reference to `sf::Image::loadFromFile(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'|
can anyone help?