土问:opengl程序在vc6.0下怎么编译??

chengtalent 2008-03-28 06:09:38
第一次编译opengl程序,编译不通过。

我在vc6.0下建了一个控制台工程,编译下面代码:
#include <GL/gl.H>
#include <GL/glu.h>
#include <GL/glaux.h>

main()
{
//InitializeAwindowPlease();
}
出现错误:
c:\program files\microsoft visual studio\vc98\include\gl\gl.h(1152) : error C2144: syntax error : missing ';' before type 'void'
c:\program files\microsoft visual studio\vc98\include\gl\gl.h(1152) : error C2501: 'WINGDIAPI' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\vc98\include\gl\gl.h(1152) : fatal error C1004: unexpected end of file found

请问如何解决??
...全文
106 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
量子 2008-03-28
  • 打赏
  • 举报
回复
项目设置
link里面添加
opengl32.lib glu32.lib glut32.lib

19,468

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 图形处理/算法
社区管理员
  • 图形处理/算法社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧