VC11RC调试CRT链接错误 [英] VC11RC debug CRT linking errors

查看:76
本文介绍了VC11RC调试CRT链接错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好

我们在项目中使用了调试CRT的内存泄漏检查功能.我刚刚尝试使用VC11 RC构建其中的某些项目,但由于缺少delete的定义,所有项目均无法链接到调试配置中.我已将其跟踪到crtdbg.h中的更改. 在VC9中,您可以:

We use the memory leak checking ability of the debug CRT in our projects. I've just tried building some of these projects with VC11 RC and all fail to link in the debug configs due to missing definitions of delete. I've tracked it down to a change in crtdbg.h. In VC9, you have:

内联void __CRTDECL运算符delete(void * _P,int,const char *,int)
        {:: operator delete(_P); }
内联void __CRTDECL运算符delete [](void * _P,int,const char *,int)
        {:: operator delete [](_ P); }

inline void __CRTDECL operator delete(void * _P, int, const char *, int)
        { ::operator delete(_P); }
inline void __CRTDECL operator delete[](void * _P, int, const char *, int)
        { ::operator delete[](_P); }

而在VC11中:

请注意转发到常规删除的缺少实现.这是故意改变吗?如果是这样,是否还有其他可链接的库?

Note the missing implementations that forward to normal delete. Was this an intentional change? If so, is there an additional lib to link against?

谢谢

保罗

Paul

推荐答案

Hello,

请您提供一些代码来证明这一点吗?其中 找到代码了吗?我使用new并删除char *,但没有引发链接错误.

Would you please provide us some codes to prove this? Where  do find the codes? I use new and delete char*, but no link error thrown.

最好的问候,

Jesse


这篇关于VC11RC调试CRT链接错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆