游戏开发论坛

 找回密码
 立即注册
搜索
查看: 1227|回复: 1

问个关于IDE的问题

[复制链接]

15

主题

202

帖子

207

积分

中级会员

Rank: 3Rank: 3

积分
207
QQ
发表于 2007-8-1 22:27:00 | 显示全部楼层 |阅读模式
我使用的是VC6.0.OpenGL1.2
可是在是使用的时候会出现如下报错:

f:\microsoft visual studio\vc98\include\gl\gl.h(1152) : error C2144: syntax error : missing ';' before type 'void'
f:\microsoft visual studio\vc98\include\gl\gl.h(1152) : error C2501: 'WINGDIAPI' : missing storage-class or type specifiers
f:\microsoft visual studio\vc98\include\gl\gl.h(1152) : fatal error C1004: unexpected end of file found

我已经include了Windows.h.出现这种错误的原因是什么呢?

15

主题

202

帖子

207

积分

中级会员

Rank: 3Rank: 3

积分
207
QQ
 楼主| 发表于 2007-8-1 22:32:00 | 显示全部楼层

Re:问个关于IDE的问题

另外:我使用了FreeImage.
当我在include"FreeImage.h"的前面include"gl.h"时上述报错就会消失....
为什么前后顺序会有影响啊.
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

作品发布|文章投稿|广告合作|关于本站|游戏开发论坛 ( 闽ICP备17032699号-3 )

GMT+8, 2026-1-25 14:25

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表