Hey, sort of a two part question here.
I have been following this tutorial (
https://www.sfml-dev.org/tutorials/2.5/start-vc.php) am getting the error "cannot open source file SFML\Graphics.hpp" when I try and run the example code at the bottom. I am trying to statically link.
I think I have followed the tutorial to the letter, but because I am using Visual studio 2019, I had to build SFML from using CMake. When I build it, The debug .lib files (with -d suffix) were generated, but not the release. I finished the tutorial anyway, just only linking the debug files. Even when trying to run the example in debug mode, I still get the error.
So two questions:
- Why is my build only giving me the debug libs?
- Is the lack of release libs the reason why it won't run? (even though I am running on debug mode)
things I have already done
> added the paths to the lib and include folders in VS (globally)
> linked the debug .lib files (along with their dependencies)
> added the SFML_STATIC macro
These are my CMake options
Cheers for any help.