OpenGL+ QT 5.0.1 + VS2010: error C2371: 'GLdouble': redefinition;不同的基本类型

时间:2021-02-25 20:05:16

I have installed QT5.0.1 and I am trying to use GLUT. I have the following error:

我已经安装了QT5.0.1,我正在尝试使用过剩。我有以下错误:

C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\GL/gl.h(55): error C2371: 'GLdouble' : redefinition; different basic types 1> C:\Qt\Qt5.0.1\5.0.1\msvc2010\include\QtGui/qopengl.h(71) : see declaration of 'GLdouble'

C:\Program Files (x86)\Microsoft sdk \ Windows \ v7.0A \包括\ GL / gl.h(55):错误C2371:“GLdouble”:重新定义;C:\Qt\Qt5.0.1\ msvc2010\包括\QtGui/qopengl.h(71):参见“GLdouble”声明

I cant understand what can be wrong and what to do.

我不明白什么会出错,什么该做。

1 个解决方案

#1


2  

I have installed QT5.0.1 and I am trying to use GLUT

我已经安装了QT5.0.1,我正在尝试使用过剩

Pick one and only one framework.

只选择一个框架。

Trying to use Qt and GLUT at the same time will only result in problems because they both want to own the event loop.

同时尝试使用Qt和overflow只会导致问题,因为它们都希望拥有事件循环。

#1


2  

I have installed QT5.0.1 and I am trying to use GLUT

我已经安装了QT5.0.1,我正在尝试使用过剩

Pick one and only one framework.

只选择一个框架。

Trying to use Qt and GLUT at the same time will only result in problems because they both want to own the event loop.

同时尝试使用Qt和overflow只会导致问题,因为它们都希望拥有事件循环。