游戏开发论坛

 找回密码
 立即注册
搜索
查看: 1566|回复: 0

编译器警告说需要DLL接口,咋办啊?

[复制链接]

65

主题

225

帖子

232

积分

中级会员

Rank: 3Rank: 3

积分
232
发表于 2004-7-7 16:34:00 | 显示全部楼层 |阅读模式
我这样写代码:
class __declspec(dllexport) A
{
list<MYSTRUCT*> List;//这行编译器警告说List需要DLL接口
};
警告原文:
warning C4251: 'List' : class 'std::list<struct MYSTRUCT*,class std::allocator<struct MYSTRUCT*> >' needs to have dll-interface to be used by clients of class 'A'
咋办啊?

环境:VC++6,DX9
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2025-7-5 13:14

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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