我下载了GLUI 2.36并开始在VS 2017、Windows 10中构建Visual Studio项目。在正确安装了GLUT库之后,仍然会出现以下编译时错误:
1>glui.cpp
1>c:\install\glui-2.36\glui-2.36\src\include\gl\glui.h(1718): error C2252: an explicit instantiation of a template can only occur at namespace scope
在大多数源文件上也是如此。