You SFML is not linked statically into CSFML, then you need to link both SFML and CSFML, but as with any library/object file with GCC, the link order matters. As the rule of thumb goes, if X depends on Y, X needs to come before Y. Since CSFML depends on SFML, you need to specify CSFML libraries before the SFML libraries.