
如何在VC中去掉STL代码编译时编译错误
2个回答
2016-03-18 · 做真实的自己 用良心做教育
千锋教育专注HTML5大前端、JavaEE、Python、人工智能、UI&UE、云计算、全栈软件测试、大数据、物联网+嵌入式、Unity游戏开发、网络安全、互联网营销、Go语言等培训教育。
向TA提问
关注

展开全部
估计大家编译STL的时候看着一堆一堆的无意义的警告信息都烦了吧,包含
下面的头文件会让你眼前清静一下的,呵呵,这样的文件,估计在BBS上看
起来会很累,所以我就没有折行,因为那样格式就坏了,更不好看,大家
还是mail回去看吧
不过可笑的是以前看着那些警告觉得烦人,都删除了,又觉得有些警告也
挺好,就当是编译进度了,现在除了最后的结束,我都不知道编译了多少
了,呵呵,觉得自己也挺变态的
[cpp] view plaincopy////////////////////////////////////////////////////////////////////// // // Author: Oskar Wieland (oskar.wieland@gmx.de) // You can modifiy and distribute this file freely. // // Creation: 31.05.2000 // // Purpose: Declarations for using STL without warning noise. // // Usage: Include this file and define at least one of the STL_USING_xxx // macros. Currently supported data types from the STL: // // // defines for using the STL // #define STL_USING_ALL // #define STL_USING_MAP // #define STL_USING_VECTOR // #define STL_USING_LIST // #define STL_USING_STRING // #define STL_USING_STREAM // #define STL_USING_ASSERT // #define STL_USING_MEMORY // #define STL_USING_STACK // // Sample: // #define STL_USING_ALL // #include "STL.h" // ////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////// // include guards ////////////////////////////////////////////////////////////////////// #ifndef STLHELPER_INCLUDED_ #define STLHELPER_INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif ////////////////////////////////////////////////////////////////////// // handy define to include all stuff
下面的头文件会让你眼前清静一下的,呵呵,这样的文件,估计在BBS上看
起来会很累,所以我就没有折行,因为那样格式就坏了,更不好看,大家
还是mail回去看吧
不过可笑的是以前看着那些警告觉得烦人,都删除了,又觉得有些警告也
挺好,就当是编译进度了,现在除了最后的结束,我都不知道编译了多少
了,呵呵,觉得自己也挺变态的
[cpp] view plaincopy////////////////////////////////////////////////////////////////////// // // Author: Oskar Wieland (oskar.wieland@gmx.de) // You can modifiy and distribute this file freely. // // Creation: 31.05.2000 // // Purpose: Declarations for using STL without warning noise. // // Usage: Include this file and define at least one of the STL_USING_xxx // macros. Currently supported data types from the STL: // // // defines for using the STL // #define STL_USING_ALL // #define STL_USING_MAP // #define STL_USING_VECTOR // #define STL_USING_LIST // #define STL_USING_STRING // #define STL_USING_STREAM // #define STL_USING_ASSERT // #define STL_USING_MEMORY // #define STL_USING_STACK // // Sample: // #define STL_USING_ALL // #include "STL.h" // ////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////// // include guards ////////////////////////////////////////////////////////////////////// #ifndef STLHELPER_INCLUDED_ #define STLHELPER_INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif ////////////////////////////////////////////////////////////////////// // handy define to include all stuff
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询