| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1217 人关注过本帖
标题:求助...请高手指点,这些错误问题出在那?
只看楼主 加入收藏
tears520
Rank: 1
等 级:新手上路
帖 子:4
专家分:0
注 册:2005-5-7
收藏
 问题点数:0 回复次数:5 
求助...请高手指点,这些错误问题出在那?

-------------------configuration: xmudclient - win32 debug-------------------- compiling... xmudclient.cpp d:\program files\microsoft visual studio\vc98\include\crtdbg.h(536) : error c2833: ´operator debug_new´ is not a recognized operator or type d:\program files\microsoft visual studio\vc98\include\crtdbg.h(536) : error c2059: syntax error : ´newline´ d:\program files\microsoft visual studio\vc98\mfc\include\afx.h(674) : error c2833: ´operator debug_new´ is not a recognized operator or type d:\program files\microsoft visual studio\vc98\mfc\include\afx.h(674) : error c2059: syntax error : ´newline´ d:\program files\microsoft visual studio\vc98\mfc\include\afx.h(674) : error c2238: unexpected token(s) preceding ´;´ d:\program files\microsoft visual studio\vc98\mfc\include\afx.h(675) : error c2833: ´operator debug_new´ is not a recognized operator or type d:\program files\microsoft visual studio\vc98\mfc\include\afx.h(675) : error c2059: syntax error : ´newline´ d:\program files\microsoft visual studio\vc98\mfc\include\afx.h(675) : error c2238: unexpected token(s) preceding ´;´ d:\program files\microsoft visual studio\vc98\mfc\include\afx.h(683) : error c2833: ´operator debug_new´ is not a recognized operator or type d:\program files\microsoft visual studio\vc98\mfc\include\afx.h(683) : error c2059: syntax error : ´newline´ d:\program files\microsoft visual studio\vc98\mfc\include\afx.h(683) : error c2238: unexpected token(s) preceding ´;´ d:\program files\microsoft visual studio\vc98\mfc\include\afx.h(1631) : error c2833: ´operator debug_new´ is not a recognized operator or type d:\program files\microsoft visual studio\vc98\mfc\include\afx.h(1631) : error c2059: syntax error : ´newline´ d:\program files\microsoft visual studio\vc98\mfc\include\afxtls_.h(122) : error c2059: syntax error : ´string´ d:\program files\microsoft visual studio\vc98\mfc\include\afxtls_.h(123) : error c2091: function returns function d:\program files\microsoft visual studio\vc98\mfc\include\afxtls_.h(123) : error c2802: static member ´operator new´ has no formal parameters d:\program files\microsoft visual studio\vc98\mfc\include\afxtls_.h(123) : error c2333: ´new´ : error in function declaration; skipping function body d:\program files\microsoft visual studio\vc98\mfc\include\afxtls_.h(131) : error c2059: syntax error : ´string´ d:\program files\microsoft visual studio\vc98\mfc\include\afxtls_.h(131) : error c2091: function returns function d:\program files\microsoft visual studio\vc98\mfc\include\afxtls_.h(131) : error c2802: static member ´operator new´ has no formal parameters d:\program files\microsoft visual studio\vc98\mfc\include\afxtls_.h(135) : error c2059: syntax error : ´string´ d:\program files\microsoft visual studio\vc98\mfc\include\afxtls_.h(135) : error c2091: function returns function d:\program files\microsoft visual studio\vc98\mfc\include\afxtls_.h(135) : error c2556: ´void *(__cdecl *__stdcall cnotrackobject::operator new(void))(unsigned int,const char *,int)´ : overloaded function differs only by return type from ´void *(__c decl *__stdcall cnotrackobject::operator new(void))(unsigned int)´ d:\program files\microsoft visual studio\vc98\mfc\include\afxtls_.h(131) : see declaration of ´new´ c:\program files\microsoft directx 9.0 sdk (april 2005)\include\dinput.h: directinput_version undefined. defaulting to version 0x0800 d:\xmud\client\xmudclient.cpp(62) : error c2660: ´new´ : function does not take 3 parameters d:\xmud\client\xmudclient.cpp(65) : error c2660: ´new´ : function does not take 3 parameters d:\xmud\client\xmudclient.cpp(105) : error c2660: ´new´ : function does not take 3 parameters d:\xmud\client\xmudclient.cpp(108) : error c2660: ´new´ : function does not take 3 parameters d:\xmud\client\xmudclient.cpp(251) : error c2660: ´new´ : function does not take 3 parameters error executing cl.exe.

xmudclient.exe - 28 error(s), 0 warning(s)

全错在这两个头文件:afx.h,crtdbg.h上....

跪求高手指点.......

搜索更多相关主题的帖子: microsoft include visual files 
2005-05-07 15:43
dugucheng
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2005-5-7
收藏
得分:0 
把代码发过来呀?
2005-05-07 15:51
C++大粉丝
Rank: 4
等 级:贵宾
威 望:10
帖 子:477
专家分:0
注 册:2004-4-23
收藏
得分:0 
把这个宏判断加进这个cpp文件里:

#ifdef _DEBUG
#define new DEBUG_NEW
#endif

I am a big fan of c plus plus.
2005-05-07 16:05
tears520
Rank: 1
等 级:新手上路
帖 子:4
专家分:0
注 册:2005-5-7
收藏
得分:0 
以下是引用姬老师在2005-5-7 16:05:04的发言: 把这个宏判断加进这个cpp文件里: #ifdef _DEBUG #define new DEBUG_NEW #endif
我试试!我是新手,对啥都一知半解的,还请多多指导!
2005-05-07 16:44
tears520
Rank: 1
等 级:新手上路
帖 子:4
专家分:0
注 册:2005-5-7
收藏
得分:0 
以下是引用dugucheng在2005-5-7 15:51:41的发言: 把代码发过来呀?
是一个游戏的源代码,很长,在一个工作区里,太多,没办法发....
2005-05-07 16:45
tears520
Rank: 1
等 级:新手上路
帖 子:4
专家分:0
注 册:2005-5-7
收藏
得分:0 

cpp里已经有这个预处理命令了:

#define INITGUID #include "stdafx.h" #include "XMudClient.h" #include "MainWnd.h"

#include "FacePlate.h" #include "CommandCheck.h" #include "MainScreen.h"

#include "wgs/Socket.h" #include "wgs/common.h"

#ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif

还是不行呢

2005-05-07 16:48
快速回复:求助...请高手指点,这些错误问题出在那?
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.093594 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved