嘗試在Qt中使用glload創建OpenGL應用程序,我測試了示例代碼。Qt中的glload錯誤
#include <iostream>
#include <windows.h>
#include <glload/gl_all.h>
#include <glload/gll.hpp>
using namespace std;
int main()
{
glload::LoadFunctions();
cout << "Hello World!" << endl;
return 0;
}
但是當我運行它,它停止工作。調試錯誤是
無法運行「:請求的操作需要提升
構建命令是
qmake.exe C:\用戶\ Benbroher \測試\ test.pro -r -spec Win32的克++ 「LIBS + = - lglloadD」 「LIBS + = - 。lopengl32」
我Qt是4.8.1,並且glsdk是0.4.4 我正在運行64位版本的Windows7,它發生在32位版本的winXP中。
什麼可能會導致這種情況,我該如何解決它?
你在哪裏創建GL上下文? – genpfault
既然Qt沒有具體的關於你的問題,我假設你的意思是「Qt Creator」(IDE)而不是Qt? – Bart