zoukankan      html  css  js  c++  java
  • gl.h报错

    以下内容摘自:http://blog.csdn.net/kaphen/article/details/24721999

    头文件只有
    #include <glgl.h> //OpenGL Header

    #include <glglu.h> //GLu32 Header

    时候出现以下错误

    1>c:program files (x86)microsoft visual studio 10.0vcincludeglgl.h(1152): error C2144: 语法错误:“void”的前面应有“;”

    1>c:program files (x86)microsoft visual studio 10.0vcincludeglgl.h(1152): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
    1>c:program files (x86)microsoft visual studio 10.0vcincludeglgl.h(1152): error C2146: 语法错误: 缺少“;”(在标识符“glAccum”的前面)
    1>c:program files (x86)microsoft visual studio 10.0vcincludeglgl.h(1152): error C2182: “APIENTRY”: 非法使用“void”类型
    1>c:program files (x86)microsoft visual studio 10.0vcincludeglgl.h(1152): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
    1>c:program files (x86)microsoft visual studio 10.0vcincludeglgl.h(1153): error C2144: 语法错误:“void”的前面应有“;”
    1>c:program files (x86)microsoft visual studio 10.0vcincludeglgl.h(1153): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
    1>c:program files (x86)microsoft visual studio 10.0vcincludeglgl.h(1153): error C2086: “int WINGDIAPI”: 重定义
    1>          c:program files (x86)microsoft visual studio 10.0vcincludeglgl.h(1152) : 参见“WINGDIAPI”的声明
    1>c:program files (x86)microsoft visual studio 10.0vcincludeglgl.h(1153): error C2146: 语法错误: 缺少“;”(在标识符“glAlphaFunc”的前面)
    1>c:program files (x86)microsoft visual studio 10.0vcincludeglgl.h(1153): error C2182: “APIENTRY”: 非法使用“void”类型
    1>c:program files (x86)microsoft visual studio 10.0vcincludeglgl.h(1153): error C2086: “int APIENTRY”: 重定义
    1>          c:program files (x86)microsoft visual studio 10.0vcincludeglgl.h(1152) : 参见“APIENTRY”的声明
    1>c:program files (x86)microsoft visual studio 10.0vcincludeglgl.h(1153): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
    1>c:program files (x86)microsoft visual studio 10.0vcincludeglgl.h(1154): error C2146: 语法错误: 缺少“;”(在标识符“GLboolean”的前面)
    1>c:program files (x86)microsoft visual studio 10.0vcincludeglgl.h(1154): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int

    。。。。。。

    少加了一个头文件:

    #include <windows.h>  //Windows Header
    #include <glgl.h>   //OpenGL Header
    #include <glglu.h>   //GLu32 Header

    或者在预处理器定义添加:WIN32
  • 相关阅读:
    【oracle】查看表空间对应文件所在位置
    【oracle】查看表空间信息
    【java异常】java.lang.Integer cannot be cast to java.lang.String
    【oracle】DATE输出是什么东西
    数字万用表的精度和分辨率,ADC的位数
    二阶系统
    Verilog中实现电平检测
    模拟信号和数字信号,直流信号和交流信号
    噪声:强度,方差信噪比(待完善)
    Simulink模块之Band-Limited White Noise
  • 原文地址:https://www.cnblogs.com/coolbear/p/6081848.html
Copyright © 2011-2022 走看看