SFML community forums
Help => General => Topic started by: moticon on January 28, 2025, 08:12:01 pm
-
I have a simple graphics example which does just a few basic actions with some sprites.
After upgrading to 3.0 and updating properties, I'm still getting a warning from Visual Studio:
Warning C4275 non dll-interface class 'std::runtime_error' used as base for dll-interface class 'sf::Exception' game C:\SFML-3.0.0\include\SFML\System\Exception.hpp 41
In Exception.hpp the class SFML_SYSTEM_API Exception is based on std::runtime_error and this is the source of the warning.
Is there something I can do to remove this warning when I compile?
Thanks!
-
Yeah, I've seen that warning pop up in VS for me as well.
Can you open an issue on GitHub so we keep track of it.
Will have to look more closely at it and if it's okay, silence the warning locally.
If you want to get rid of it, you could temporarily silence the C4275 warning in your project.