游戏开发论坛

 找回密码
 立即注册
搜索
查看: 1493|回复: 2

请教一个在VC中用OpenGL编程的问题!

[复制链接]

7

主题

11

帖子

11

积分

新手上路

Rank: 1

积分
11
发表于 2004-11-28 09:38:00 | 显示全部楼层 |阅读模式
--------------------Configuration: GLSAMPLE1 - Win32 Debug--------------------
Compiling resources...
Compiling...
StdAfx.cpp
d:\microsoft visual studio\vc98\include\gl\gl.h(1152) : error C2144: syntax error : missing ';' before type 'void'
d:\microsoft visual studio\vc98\include\gl\gl.h(1152) : error C2501: 'WINGDIAPI' : missing storage-class or type specifiers
d:\microsoft visual studio\vc98\include\gl\gl.h(1152) : fatal error C1004: unexpected end of file found
Error executing cl.exe.

GLSAMPLE1.exe - 3 error(s), 0 warning(s)
[em7]

6

主题

76

帖子

83

积分

注册会员

Rank: 2

积分
83
发表于 2004-11-28 12:54:00 | 显示全部楼层

Re:请教一个在VC中用OpenGL编程的问题!

肯定是你的代码中写漏了什么东西,比如说分号等

18

主题

573

帖子

573

积分

高级会员

Rank: 4

积分
573
发表于 2004-11-28 17:54:00 | 显示全部楼层

Re:请教一个在VC中用OpenGL编程的问题!

在所有的包含文件前加入#include <windows.h>
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2025-12-23 11:51

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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