| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1347 人关注过本帖
标题:关于一个简单的OPENGL程序无法运行的问题请出现在错误
只看楼主 加入收藏
renhao153
Rank: 1
等 级:新手上路
帖 子:8
专家分:0
注 册:2007-11-10
收藏
 问题点数:0 回复次数:0 
关于一个简单的OPENGL程序无法运行的问题请出现在错误
--------------------Configuration: opengl_cs - Win32 Debug--------------------
Compiling...
cs.c
d:\vc98\include\gl\gl.h(1152) : error C2054: expected '(' to follow 'WINGDIAPI'
d:\vc98\include\gl\gl.h(1152) : error C2085: 'APIENTRY' : not in formal parameter list
d:\vc98\include\gl\gl.h(1152) : error C2146: syntax error : missing ',' before identifier 'glAccum'
d:\vc98\include\gl\gl.h(1152) : error C2143: syntax error : missing ';' before '('
d:\vc98\include\gl\gl.h(1152) : error C2059: syntax error : ')'
d:\vc98\include\gl\gl.h(1153) : error C2054: expected '(' to follow 'WINGDIAPI'
d:\vc98\include\gl\gl.h(1153) : error C2085: 'APIENTRY' : not in formal parameter list
d:\vc98\include\gl\gl.h(1153) : error C2146: syntax error : missing ',' before identifier 'glAlphaFunc'
d:\vc98\include\gl\gl.h(1153) : error C2143: syntax error : missing ';' before '('
d:\vc98\include\gl\gl.h(1153) : error C2059: syntax error : ')'
d:\vc98\include\gl\gl.h(1154) : error C2054: expected '(' to follow 'WINGDIAPI'
d:\vc98\include\gl\gl.h(1154) : error C2085: 'APIENTRY' : not in formal parameter list
d:\vc98\include\gl\gl.h(1154) : error C2146: syntax error : missing ',' before identifier 'glAreTexturesResident'
d:\vc98\include\gl\gl.h(1154) : error C2143: syntax error : missing ';' before '('
d:\vc98\include\gl\gl.h(1154) : error C2059: syntax error : ')'
d:\vc98\include\gl\gl.h(1155) : error C2054: expected '(' to follow 'WINGDIAPI'
d:\vc98\include\gl\gl.h(1155) : error C2085: 'APIENTRY' : not in formal parameter list
d:\vc98\include\gl\gl.h(1155) : error C2146: syntax error : missing ',' before identifier 'glArrayElement'
d:\vc98\include\gl\gl.h(1155) : error C2143: syntax error : missing ';' before '('
d:\vc98\include\gl\gl.h(1155) : error C2059: syntax error : ')'
d:\vc98\include\gl\gl.h(1156) : error C2054: expected '(' to follow 'WINGDIAPI'
d:\vc98\include\gl\gl.h(1156) : error C2085: 'APIENTRY' : not in formal parameter list
d:\vc98\include\gl\gl.h(1156) : error C2146: syntax error : missing ',' before identifier 'glBegin'
d:\vc98\include\gl\gl.h(1156) : error C2143: syntax error : missing ';' before '('
d:\vc98\include\gl\gl.h(1156) : error C2059: syntax error : ')'
d:\vc98\include\gl\gl.h(1157) : error C2054: expected '(' to follow 'WINGDIAPI'
d:\vc98\include\gl\gl.h(1157) : error C2085: 'APIENTRY' : not in formal parameter list
d:\vc98\include\gl\gl.h(1157) : error C2146: syntax error : missing ',' before identifier 'glBindTexture'
d:\vc98\include\gl\gl.h(1157) : error C2143: syntax error : missing ';' before '('
d:\vc98\include\gl\gl.h(1157) : error C2059: syntax error : ')'
d:\vc98\include\gl\gl.h(1158) : error C2054: expected '(' to follow 'WINGDIAPI'
d:\vc98\include\gl\gl.h(1158) : error C2085: 'APIENTRY' : not in formal parameter list
d:\vc98\include\gl\gl.h(1158) : error C2146: syntax error : missing ',' before identifier 'glBitmap'
d:\vc98\include\gl\gl.h(1158) : error C2143: syntax error : missing ';' before '('
d:\vc98\include\gl\gl.h(1158) : error C2059: syntax error : ')'
d:\vc98\include\gl\gl.h(1159) : error C2054: expected '(' to follow 'WINGDIAPI'
d:\vc98\include\gl\gl.h(1159) : error C2085: 'APIENTRY' : not in formal parameter list
d:\vc98\include\gl\gl.h(1159) : error C2146: syntax error : missing ',' before identifier 'glBlendFunc'
d:\vc98\include\gl\gl.h(1159) : error C2143: syntax error : missing ';' before '('
d:\vc98\include\gl\gl.h(1159) : error C2059: syntax error : ')'
d:\vc98\include\gl\gl.h(1160) : error C2054: expected '(' to follow 'WINGDIAPI'
d:\vc98\include\gl\gl.h(1160) : error C2085: 'APIENTRY' : not in formal parameter list
d:\vc98\include\gl\gl.h(1160) : error C2146: syntax error : missing ',' before identifier 'glCallList'
d:\vc98\include\gl\gl.h(1160) : error C2143: syntax error : missing ';' before '('
d:\vc98\include\gl\gl.h(1160) : error C2059: syntax error : ')'
d:\vc98\include\gl\gl.h(1161) : error C2054: expected '(' to follow 'WINGDIAPI'
d:\vc98\include\gl\gl.h(1161) : error C2085: 'APIENTRY' : not in formal parameter list
d:\vc98\include\gl\gl.h(1161) : error C2146: syntax error : missing ',' before identifier 'glCallLists'
d:\vc98\include\gl\gl.h(1161) : error C2143: syntax error : missing ';' before '('
d:\vc98\include\gl\gl.h(1161) : error C2059: syntax error : ')'
d:\vc98\include\gl\gl.h(1162) : error C2054: expected '(' to follow 'WINGDIAPI'
d:\vc98\include\gl\gl.h(1162) : error C2085: 'APIENTRY' : not in formal parameter list
d:\vc98\include\gl\gl.h(1162) : error C2146: syntax error : missing ',' before identifier 'glClear'
d:\vc98\include\gl\gl.h(1162) : error C2143: syntax error : missing ';' before '('
d:\vc98\include\gl\gl.h(1162) : error C2059: syntax error : ')'
d:\vc98\include\gl\gl.h(1163) : error C2054: expected '(' to follow 'WINGDIAPI'
d:\vc98\include\gl\gl.h(1163) : error C2085: 'APIENTRY' : not in formal parameter list
d:\vc98\include\gl\gl.h(1163) : error C2146: syntax error : missing ',' before identifier 'glClearAccum'
d:\vc98\include\gl\gl.h(1163) : error C2143: syntax error : missing ';' before '('
d:\vc98\include\gl\gl.h(1163) : error C2059: syntax error : ')'
d:\vc98\include\gl\gl.h(1164) : error C2054: expected '(' to follow 'WINGDIAPI'
d:\vc98\include\gl\gl.h(1164) : error C2085: 'APIENTRY' : not in formal parameter list
d:\vc98\include\gl\gl.h(1164) : error C2146: syntax error : missing ',' before identifier 'glClearColor'
d:\vc98\include\gl\gl.h(1164) : error C2143: syntax error : missing ';' before '('
d:\vc98\include\gl\gl.h(1164) : error C2059: syntax error : ')'
d:\vc98\include\gl\gl.h(1165) : error C2054: expected '(' to follow 'WINGDIAPI'
d:\vc98\include\gl\gl.h(1165) : error C2085: 'APIENTRY' : not in formal parameter list
d:\vc98\include\gl\gl.h(1165) : error C2146: syntax error : missing ',' before identifier 'glClearDepth'
d:\vc98\include\gl\gl.h(1165) : error C2143: syntax error : missing ';' before '('
d:\vc98\include\gl\gl.h(1165) : error C2059: syntax error : ')'
d:\vc98\include\gl\gl.h(1166) : error C2054: expected '(' to follow 'WINGDIAPI'
d:\vc98\include\gl\gl.h(1166) : error C2085: 'APIENTRY' : not in formal parameter list
d:\vc98\include\gl\gl.h(1166) : error C2146: syntax error : missing ',' before identifier 'glClearIndex'
d:\vc98\include\gl\gl.h(1166) : error C2143: syntax error : missing ';' before '('
d:\vc98\include\gl\gl.h(1166) : error C2059: syntax error : ')'
d:\vc98\include\gl\gl.h(1167) : error C2054: expected '(' to follow 'WINGDIAPI'
d:\vc98\include\gl\gl.h(1167) : error C2085: 'APIENTRY' : not in formal parameter list
d:\vc98\include\gl\gl.h(1167) : error C2146: syntax error : missing ',' before identifier 'glClearStencil'
d:\vc98\include\gl\gl.h(1167) : error C2143: syntax error : missing ';' before '('
d:\vc98\include\gl\gl.h(1167) : error C2059: syntax error : ')'
d:\vc98\include\gl\gl.h(1168) : error C2054: expected '(' to follow 'WINGDIAPI'
d:\vc98\include\gl\gl.h(1168) : error C2085: 'APIENTRY' : not in formal parameter list
d:\vc98\include\gl\gl.h(1168) : error C2146: syntax error : missing ',' before identifier 'glClipPlane'
d:\vc98\include\gl\gl.h(1168) : error C2143: syntax error : missing ';' before '('
d:\vc98\include\gl\gl.h(1168) : error C2059: syntax error : ')'
d:\vc98\include\gl\gl.h(1169) : error C2054: expected '(' to follow 'WINGDIAPI'
d:\vc98\include\gl\gl.h(1169) : error C2085: 'APIENTRY' : not in formal parameter list
d:\vc98\include\gl\gl.h(1169) : error C2146: syntax error : missing ',' before identifier 'glColor3b'
d:\vc98\include\gl\gl.h(1169) : error C2143: syntax error : missing ';' before '('
d:\vc98\include\gl\gl.h(1169) : error C2059: syntax error : ')'
d:\vc98\include\gl\gl.h(1170) : error C2054: expected '(' to follow 'WINGDIAPI'
d:\vc98\include\gl\gl.h(1170) : error C2085: 'APIENTRY' : not in formal parameter list
d:\vc98\include\gl\gl.h(1170) : error C2146: syntax error : missing ',' before identifier 'glColor3bv'
d:\vc98\include\gl\gl.h(1170) : error C2143: syntax error : missing ';' before '('
d:\vc98\include\gl\gl.h(1170) : error C2059: syntax error : ')'
d:\vc98\include\gl\gl.h(1171) : error C2054: expected '(' to follow 'WINGDIAPI'
d:\vc98\include\gl\gl.h(1171) : error C2085: 'APIENTRY' : not in formal parameter list
d:\vc98\include\gl\gl.h(1171) : error C2146: syntax error : missing ',' before identifier 'glColor3d'
d:\vc98\include\gl\gl.h(1171) : error C2143: syntax error : missing ';' before '('
d:\vc98\include\gl\gl.h(1171) : error C2059: syntax error : ')'
d:\vc98\include\gl\gl.h(1172) : error C2054: expected '(' to follow 'WINGDIAPI'
d:\vc98\include\gl\gl.h(1172) : fatal error C1003: error count exceeds 100; stopping compilation
执行 cl.exe 时出错.

opengl_cs.exe - 1 error(s), 0 warning(s)
搜索更多相关主题的帖子: OPENGL include syntax 
2008-07-13 13:11
快速回复:关于一个简单的OPENGL程序无法运行的问题请出现在错误
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.091197 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved