Hello. I'm trying to make a game with SFML. The problem is that when I'm trying to display the sprite of the ship it is giving me an undefined reference. Also, I want to know if I can do something better than putting all of my #includes into each header, because I know that can cause problems later on.
An undefined reference means the linker can find no definition of a function or variable used in your program. Ensure that you have such a definition and that it is being exposed to your toolchain.