SFML community forums
Help => Graphics => Topic started by: ConanHorus on June 13, 2018, 06:05:29 am
-
I installed SFML from the NuGet packages. We use NuGets all the time at work (albeit in C#). They're super slick and do everything for you except shine your shoes ... until now that is.
There is just one other thing that's different. In Visual Studio 2017, there is no Win32 application - the option simple doesn't exist. So I chose empty project instead.
I have written up the basic circle program from here: https://www.sfml-dev.org/tutorials/2.5/start-vc.php
I linked up all the directories and added the preprocessor definition as the tutorial expects.
Still doesn't work. So then I look over here: https://stackoverflow.com/questions/30810026/fatal-error-lnk1104-cannot-open-file-sfml-graphics-s-d-lib
After going through and deleting all the 64bit files, it still won't work. I keep getting the compile time error: "cannot open file 'sfml-graphics-s-d.lib.'"
What could I possibly be doing wrong?
-
Does the NuGet packge distribute static binaries?
-
Yes. It distributes both static and dynamic libs. DLLs are only dynamic if that matters. Then again, a sample dll is called 'sfml-graphics-d-2.dll' which seems a little weird.
-
So, in VisualStudio 2017 the win32 projects are hidden and require some extra steps. But now it's no longer complaining about the lib. Instead, it is now complaining about sfml-graphics-d-2.dll which is odd because it is right there with everything else. I even copied in into the working directory and ... nothing. It'll build, but immediately crash.
For anyone else looking for instructions to generate a win32 application, go here: https://stackoverflow.com/questions/45828356/win32-console-application-missing-in-vs2017-how-to-create-c-empty-project