游戏开发论坛

 找回密码
 立即注册
搜索
查看: 1678|回复: 3

请教关于PhysX物理引擎的问题

[复制链接]

10

主题

88

帖子

88

积分

注册会员

Rank: 2

积分
88
发表于 2008-10-17 17:51:00 | 显示全部楼层 |阅读模式
编译时遇到错误:已 #include<windows.h> 请在 #include<windows.h> 前加入 #define ....

应该怎么办?

119

主题

1367

帖子

1393

积分

金牌会员

Rank: 6Rank: 6

积分
1393
发表于 2008-10-17 18:53:00 | 显示全部楼层

Re:请教关于PhysX物理引擎的问题

#if defined( __WIN32__ ) || defined( _WIN32 )
#   define WIN32_LEAN_AND_MEAN
#   include <windows.h>

//取消愚蠢的 window min 和max宏
#   undef min
#   undef max
#endif

10

主题

88

帖子

88

积分

注册会员

Rank: 2

积分
88
 楼主| 发表于 2008-10-17 20:29:00 | 显示全部楼层

Re:请教关于PhysX物理引擎的问题

输入后出错:

error C2065: 'max' : undeclared identifier
error C2065: 'min' : undeclared identifier

要怎么办?

10

主题

88

帖子

88

积分

注册会员

Rank: 2

积分
88
 楼主| 发表于 2008-10-17 20:39:00 | 显示全部楼层

Re:请教关于PhysX物理引擎的问题

没问题了,实在太感谢了!
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2026-1-21 02:22

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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