游戏开发论坛

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

请问glut3.7的编译问题?

[复制链接]

6

主题

8

帖子

12

积分

新手上路

Rank: 1

积分
12
发表于 2010-6-18 10:09:00 | 显示全部楼层 |阅读模式
请问各位在官网下载的glut3.7编译时出现这样的问题,
Making in particle subdirectory...
        cl -c -DCRTAPI1=_cdecl -DCRTAPI2=_cdecl -nologo -GS -D_X86_=1  -DWIN32 -
D_WIN32 -W3 -D_WINNT -D_WIN32_WINNT=0x0500 -D_WIN32_IE=0x0500 -DWINVER=0x0500 -O
x -DNDEBUG  -DWIN32 -I../../../include particle.c
particle.c
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\sys/timeb.inl(51) : error
C2143: syntax error : missing ';' before '{'
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\sys/timeb.inl(53) : error
C2065: '_Tmb' : undeclared identifier
particle.c(69) : error C2143: syntax error : missing ';' before 'type'
particle.c(71) : error C2065: 'tb' : undeclared identifier
particle.c(71) : warning C4133: 'function' : incompatible types - from 'int *' t
o 'timeb *'
particle.c(72) : error C2224: left of '.time' must have struct/union type
particle.c(72) : error C2224: left of '.millitm' must have struct/union type
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 8\VC\BIN\c
l.EXE"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 8\VC\BIN\n
make.EXE"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 8\VC\BIN\n
make.EXE"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 8\VC\BIN\n
make.EXE"' : return code '0x2'
Stop.

该如何解决?

0

主题

1

帖子

0

积分

新手上路

Rank: 1

积分
0
发表于 2010-8-3 20:11:00 | 显示全部楼层

Re:请问glut3.7的编译问题?

这个问题我遇到过, 先找到 C:\Program Files\Microsoft Visual Studio 8\VC\bin\vcvars32.bat 文件, 在DOS 里面运行它, 不要关闭控制台, 在运行glutmake.bat 文件, 就OK 了!
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2025-6-9 18:08

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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