游戏开发论坛

 找回密码
 立即注册
搜索
查看: 4656|回复: 7

编译不行

[复制链接]

70

主题

91

帖子

101

积分

注册会员

Rank: 2

积分
101
QQ
发表于 2003-8-24 14:07:00 | 显示全部楼层 |阅读模式
我把你的引擎源程序编译后出现了错误,后来一查发现错误在这个部分,list<CCustomEdit*> g_listCustomEdit;
typedef list<CCustomEdit* >::iterator CustomEditIterator;
这是为什么

1万

主题

1万

帖子

2万

积分

管理员

中级会员

Rank: 9Rank: 9Rank: 9

积分
20356
QQ
发表于 2003-8-24 16:37:00 | 显示全部楼层

Re:编译不行

会出错?IDE提示什么错误? 另外你的编译器是什么版本?

另外如果是HoHo的问题,以后发到HoHo专区去会比较好些。

70

主题

91

帖子

101

积分

注册会员

Rank: 2

积分
101
QQ
 楼主| 发表于 2003-8-24 22:30:00 | 显示全部楼层

Re: 编译不行

就是这些错误
E:\wulong\CustomEdit.cpp(101) : error C2143: syntax error : missing ';' before '<'
E:\wulong\CustomEdit.cpp(101) : error C2501: 'list' : missing storage-class or type specifiers
E:\wulong\CustomEdit.cpp(101) : error C2143: syntax error : missing ';' before '<'
E:\wulong\CustomEdit.cpp(102) : error C2143: syntax error : missing ';' before '<'
E:\wulong\CustomEdit.cpp(102) : error C2378: 'list' : redefinition; symbol cannot be overloaded with a typedef
        E:\wulong\CustomEdit.cpp(101) : see declaration of 'list'
E:\wulong\CustomEdit.cpp(102) : error C2143: syntax error : missing ';' before '<'
E:\wulong\CustomEdit.cpp(102) : error C2039: 'iterator' : is not a member of '`global namespace''

1万

主题

1万

帖子

2万

积分

管理员

中级会员

Rank: 9Rank: 9Rank: 9

积分
20356
QQ
发表于 2003-8-25 01:41:00 | 显示全部楼层

Re:编译不行

似乎是你没有包含对标准模板库,但是应该是不用的,你可以参看一下我附带的例子程序,或者看看我写的教程处理方式。

70

主题

91

帖子

101

积分

注册会员

Rank: 2

积分
101
QQ
 楼主| 发表于 2003-8-25 09:22:00 | 显示全部楼层

Re: 编译不行

你附带的例子程序和你写的教程处理方式在哪里。我觉得是缺少什么头文件,因为我是把编辑这模块单独编译出现的错误。你知道错在哪吗?
[em3]

6

主题

43

帖子

47

积分

注册会员

Rank: 2

积分
47
QQ
发表于 2003-8-25 11:04:00 | 显示全部楼层

Re:编译不行

#include <list>
using namespace std;

70

主题

91

帖子

101

积分

注册会员

Rank: 2

积分
101
QQ
 楼主| 发表于 2003-8-25 12:10:00 | 显示全部楼层

Re: 编译不行

list是什么,是头文件吗,还有下面一句是什么意思。 [em7]

1万

主题

1万

帖子

2万

积分

管理员

中级会员

Rank: 9Rank: 9Rank: 9

积分
20356
QQ
发表于 2003-8-25 12:44:00 | 显示全部楼层

Re:编译不行

http://www.gameres.com/HoHo

这里有完整的HoHo版本,里面有Sample,你可以参考一下。
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2024-5-2 08:18

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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