`
freesoftman
  • 浏览: 314512 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
社区版块
存档分类
最新评论

_MSC_VER

阅读更多
_MSC_VER 是什么意思?
这是微软的预编译控制。
在_MSC_VER较小时,它对一些东西的支持与新版不同

_MSC_VER分解如下:
MS:Microsoft(微软)的简写
C:MSC就是Microsoft出的C编译器。
VER:Version(版本)的简写。
全部加在一起就是:Microsoft的C编译器的版本

很多头文件中有
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
_MSC_VER 定义编译器的版本,VC++6.0就是1200  
#if   _MSC_VER   >   1000的意思就是如果编译器版本高于1000(VC++5.0)
4C:\Documents and Settings\Administrator>cl /?
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8168 for 80x86
Copyright (C) Microsoft Corp 1984-1998. All rights reserved.
                          C/C++ COMPILER OPTIONS
                              -OPTIMIZATION-
/O1 minimize space                       /Op[-] improve floating-pt consistency
/O2 maximize speed                       /Os favor code space
/Oa assume no aliasing                   /Ot favor code speed
/Ob<n> inline expansion (default n=0)    /Ow assume cross-function aliasing
/Od disable optimizations (default)      /Ox maximum opts. (/Ogityb1 /Gs)
/Og enable global optimization           /Oy[-] enable frame pointer omission
/Oi enable intrinsic functions
                             -CODE GENERATION-
/G3 optimize for 80386                   /Gy separate functions for linker
/G4 optimize for 80486                   /Ge force stack checking for all funcs
/G5 optimize for Pentium                 /Gs[num] disable stack checking calls
/G6 optimize for Pentium Pro             /Gh enable hook function call
/GB optimize for blended model (default) /GR[-] enable C++ RTTI
/Gd __cdecl calling convention           /GX[-] enable C++ EH (same as /EHsc)
/Gr __fastcall calling convention        /Gi[-] enable incremental compilation
/Gz __stdcall calling convention         /Gm[-] enable minimal rebuild
/GA optimize for Windows Application     /EHs enable synchronous C++ EH
/GD optimize for Windows DLL             /EHa enable asynchronous C++ EH
(press <return> to continue)
/Gf enable string pooling                /EHc extern "C" defaults to nothrow
/GF enable read-only string pooling      /QIfdiv[-] enable Pentium FDIV fix
/GZ enable runtime debug checks          /QI0f[-] enable Pentium 0x0f fix
                              -OUTPUT FILES-
/Fa[file] name assembly listing file     /Fo<file> name object file
/FA[sc] configure assembly listing       /Fp<file> name precompiled header file
/Fd[file] name .PDB file                 /Fr[file] name source browser file
/Fe<file> name executable file           /FR[file] name extended .SBR file
/Fm[file] name map file
                              -PREPROCESSOR-
/C don't strip comments                  /FI<file> name forced include file
/D<name>{=|#}<text> define macro         /U<name> remove predefined macro
/E preprocess to stdout                  /u remove all predefined macros
/EP preprocess to stdout, no #line       /I<dir> add to include search path
/P preprocess to file                    /X ignore "standard places"
                                -LANGUAGE-
/Zi enable debugging information         /Zl omit default library name in .OBJ
/ZI enable Edit and Continue debug info /Zg generate function prototypes
(press <return> to continue)
/Z7 enable old-style debug info          /Zs syntax check only
/Zd line number debugging info only      /vd{0|1} disable/enable vtordisp
/Zp[n] pack structs on n-byte boundary   /vm<x> type of pointers to members
/Za disable extensions (implies /Op)     /noBool disable "bool" keyword
/Ze enable extensions (default)
                              -MISCELLANEOUS-
/?, /help print this help message        /V<string> set version string
/c compile only, no link                 /w disable all warnings
/H<num> max external name length         /W<n> set warning level (default n=1)
/J default char type is unsigned         /WX treat warnings as errors
/nologo suppress copyright message       /Yc[file] create .PCH file
/Tc<source file> compile file as .c      /Yd put debug info in every .OBJ
/Tp<source file> compile file as .cpp    /Yu[file] use .PCH file
/TC compile all files as .c              /YX[file] automatic .PCH
/TP compile all files as .cpp            /Zm<n> max memory alloc (% of default)
                                 -LINKING-
/MD link with MSVCRT.LIB                 /MDd link with MSVCRTD.LIB debug lib
/ML link with LIBC.LIB                   /MLd link with LIBCD.LIB debug lib
/MT link with LIBCMT.LIB                 /MTd link with LIBCMTD.LIB debug lib
/LD Create .DLL                          /F<num> set stack size
(press <return> to continue)
/LDd Create .DLL debug libary            /link [linker options and libraries]
C:\Documents and Settings\Administrator>
分享到:
评论

相关推荐

    typeof_common.zip_Boost_boost vc6_msc.dll_typeof

    typeof,编译时获取表达式类型运算符,是gcc编译器的一个扩展(intel编译器 也支持). 笔者最近作一个项目时需要用比较...整个vs系列就只有_MSC_VER==1310这种情况没有作了(我或者同事手头都没这个版本),欢迎大家完善。

    VC++ 加密代码

    很不错加密软件源码#if !defined(AFX_DQPLOT_H__0D536D37_5CF1_11D1_AED1...#if _MSC_VER &gt;= 1000 #pragma once #endif // _MSC_VER &gt;= 1000 // clPlot.h : header file // #define MAXLEGENDS 10 #define MAXSERIES 50

    运动会分数统计 C++

    #if _MSC_VER &gt; 1000 #pragma once #endif #ifndef _INC_EH #define _INC_EH #if !defined(_WIN32) && !defined(_MAC) #error ERROR: Only Mac or Win32 targets supported! #endif #ifdef _MSC_VER // ...

    BCGCBarProMFC25 VS2017编译配置

    BCGCBarProMFC25 默认编译器最高支持到VS2015,要在VS2017环境下使用需要修改项目配置文件和头文件。使用方法:将压缩包中的文件解压到BCG安装源代码位置,使用VS2017打开对应的项目进行编译即可。

    C++EGE: Ballon Ball 动画

    #if defined(_MSC_VER) && (_MSC_VER &gt;= 1200) #pragma once #endif #ifndef __cplusplus #error You must use C++ compiler, or you need filename with '.cpp' suffix #endif #if defined(_INC_CONIO) || ...

    画图工具之Sai,可接触控板

    新手程序,ER是微软公司推出的C/C++编译器在ANSI/...如Visual Studio 2005的Vistual C++版本为8.0,所附带编译器的_MSC_VER定义是1400;目前最新的Visual Studio 2015的Visual C++版本为14.0,相应_MSC_VER为1900。[1]

    头文件免费下载

    #if _MSC_VER &gt; 1000 #pragma once #endif // _MSC_VER &gt; 1000 // TODO: reference additional headers your program requires here //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional ...

    学生考勤管理系统的源代码

    defined(AFX_ATTDLG_H__678D0382_ABEA_11D6_8649_0088CC174723__INCLUDED_) #define AFX_ATTDLG_H__678D0382_ABEA_11D6_8649...#if _MSC_VER &gt; 1000 #pragma once #endif // _MSC_VER &gt; 1000 // AttDlg.h : header file

    可以人机对话的AI小模型

    #if _MSC_VER &gt; 1000 #pragma once #endif // _MSC_VER &gt; 1000 #include "AdoDBMod.h" class CAdoDB { public: _ConnectionPtr m_pConn; public: BOOL OpenDB(CString strSRC); BOOL OpenAccessDB...

    歌词显示源代码,类似baidu歌曲试听歌词滚动效果,vs2005/vc6.0,mfc

    用mfc写的一个歌词滚动的demo,显示结果类似于baidu的歌曲试听的歌词滚动效果。可以用rar压缩包中release里的exe,先观看效果。 ...不过也可以自己下载gdi+的sdk,把_MSC_VER宏取消,实现阴影效果

    C++工程编译选项详解

    介绍C++开发环境中C++编译器的各个选项和参数,以帮助更好的编译程序。

    visual c++课程设计出租车管理系统源程序

    #if _MSC_VER &gt; 1000 #pragma once #endif // _MSC_VER &gt; 1000 // LawDlg.h : header file // ///////////////////////////////////////////////////////////////////////////// // CLawDlg dialog class CLawDlg ...

    文档管理系统源码,资源内容还不错,现在分享给大家

    #if _MSC_VER &gt; 1000 #pragma once #endif // _MSC_VER &gt; 1000 class CUsers { private: CString Username; CString Pwd; CString JB; public: CUsers(); virtual ~CUsers(); CString ...

    C语言 时钟

    #if _MSC_VER &gt; 1000 #pragma once #endif // _MSC_VER &gt; 1000 #define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers #include &lt;afxwin.h&gt; // MFC core and standard components #include ...

    listview_5.zip

    #if _MSC_VER &gt;= 1000 #pragma once #endif // _MSC_VER &gt;= 1000 #define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers #include &lt;afxwin.h&gt; // MFC core and standard components #include ...

    如何在程序中判断VS的版本(实现方法详解)

    代码如下所示: ..._MSC_VER实际就是 Microsoft visual c++ version(是微软的预定义宏). 具体对应如下:  MS VC++ 14.0 _MSC_VER = 1900(VS2015)  MS VC++ 12.0 _MSC_VER = 1800(VS2013)  MS VC

    vc StdAfx头文件

    #if _MSC_VER &gt; 1000 #pragma once #endif // _MSC_VER &gt; 1000 #define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers #include &lt;afxwin.h&gt; // MFC core and standard components #include ...

    Flex实例 自绘图形按钮

    NULL 博文链接:https://guangqiang.iteye.com/blog/802589

    酒店管理系统源码(VC)

    #if _MSC_VER &gt; 1000 #pragma once #endif // _MSC_VER &gt; 1000 #include "CoolTabBar.h" #include "CoolListBox.h" #include ".\\3D-MaxTab\\RollupCtrl.h" #include ".\\coolmenu\\CoolMenu.h" #include ".\\...

    tree代码的实现与简单应用

    #if _MSC_VER &gt; 1000 #pragma once #endif // _MSC_VER &gt; 1000 #ifndef __AFXWIN_H__ #error include 'stdafx.h' before including this file for PCH #endif #include "resource.h" // main symbols //////////...

Global site tag (gtag.js) - Google Analytics