Not sure if I got the error message correct. Please correct me if I am wrong.
This isn't a asking for help post. Its an answer post, for other newbies like me, so that they don't have to go through the nightmare I went through of searching and failing.
I'm using Linux/Fedora 25 and Code::Blocks IDE.
I've been having problems compiling anything that calls SFML. I'm getting undefined reference errors. So I decided to compile SFML from source.
I found most everything I needed within a few minutes with the commands:
dnf whatprovides <the file I need or symbol I need>
dnf install <the package I need>
(Have to run the above commands as root)
The big bear of a problem to find was LIBJPEG_8. Fedora 25 uses a package called libjpeg-turbo to implement the libjpeg library. This library emulates libjpeg v8. So it doesn't have the libjpeg libraries SFML needs. Also, it seems that libjpeg v8 is emulated in a lot of other distros. So the file libjpeg.so.8 that SFML needs was seeminly nowhere to be found. After days of searching, I found it in
https://rpmfind.net/linux/RPM/mageia/1/x86_64/media/core/updates/lib64jpeg8-8b-5.1.mga1.x86_64.htmlWhen you want to find a file SFML needs;
https://www.rpmfind.net/is your friend.
I hope this post helps many others.