[英]C2252 error when building GLUI with VS2017?
我下載了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
同樣,在大多數源文件上也是如此。
最佳解決方案是什么? 還是可以在某個地方下載最新版本?
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.