c++nugetvisual-studio-2019freeglut

Visual Studio 2019 Freeglut (via nuget) - cannot open "Freeglut.lib"


I've been trying to create a GLUT-compatible Visual Studio 2019 project. Manually installing has caused some extremely complicated issues and breaks the project completely (even after uninstalling it) so I'm just trying to use the Nuget package. The .h files seem to be included correctly after this. However, any use of the line '#include <GL/freeglut.h>' - even in a completely blank project - produces an LNK1104 error:

cannot open file 'freeglut.lib'

Are there additional installation steps I'm missing? The .lib file is present in the folders. Trying to manually link it in project properties changes nothing.


Solution

  • Resolved by using this method and then adding the line

    #include <windows.h>