`std::snprintf()` is a C++11 function, but SFML uses C++03. Do you really need this function? If not, I recommend using `std::stringstream` instead. Check also `_sntprintf()` (non-standard function) you used elsewhere...