使用Visual C ++ 2010Express构建MTserver时出错 [英] Error Building MTserver With Visual C++ 2010Express

查看:63
本文介绍了使用Visual C ++ 2010Express构建MTserver时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

#ifndef __AFX_H__
#define __AFX_H__

#ifndef __cplusplus
	#error MFC requires C++ compilation (use a .cpp suffix)
#endif

#pragma once

/////////////////////////////////////////////////////////////////////////////

#ifdef _DLL
#ifndef _AFXDLL
	#error Building MFC application with /MD[d] (CRT dll version) requires 
         MFC shared dll version. Please #define _AFXDLL or do not use /MD[d]
#endif
#endif


为什么?


WHY?

推荐答案

因为为CPP定义了afx.h头文件.为禁止您在C文件中添加afx.h,已添加此代码.请不要删除此部分.
Because afx.h header file is defined for CPP. to forbid you adding afx.h in C file this code has been added. please dont remove this part.


这篇关于使用Visual C ++ 2010Express构建MTserver时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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