主题:[求助]使用STL模板库有问题

  共有27850人关注过本帖    
美女呀,离线,留言给我吧!
yangdan1982
1楼 信息 | 搜索 | 邮箱


加好友 发短信
[求助]使用STL模板库有问题  发帖心情 Post By:2015-11-6 18:27:00   [显示全部帖子]

您好,


目前我使用EM335X_CE8开发包写程序遇到了问题。


我在一个cpp文件的最开始加:#include <vector>,会报如下错误:


1>C:\Program Files (x86)\Windows CE Tools\SDKs\EM335x_CE8\sdk\Inc\cestl\new(60): error C2883: 'set_new_handler' : function declaration conflicts with 'std::set_new_handler' introduced by using-declaration

1>          C:\Program Files (x86)\Windows CE Tools\SDKs\EM335x_CE8\sdk\crt\Include\new.h(52) : see declaration of 'std::set_new_handler'

1>C:\Program Files (x86)\Windows CE Tools\SDKs\EM335x_CE8\sdk\Inc\cestl\new(60): warning C4273: 'std::set_new_handler' : inconsistent dll linkage

1>          C:\Program Files (x86)\Windows CE Tools\SDKs\EM335x_CE8\sdk\crt\Include\new.h(52) : see previous definition of 'set_new_handler'


请问这是怎么回事?


  单帖管理 | 引用 | 回复 回到顶部

返回首页

[求助]使用STL模板库有问题

用户名:
            验证码: 验证码,看不清楚?请点击刷新验证码
内容: