How To Disable "_CRT_SECURE_NO_WARNINGS" Warnings
While you using MS Visual Studio, there are always "_CRT_SECURE_NO_WARNINGS" warnings appeared, like bellow:"warning C4996: 'strerror': This function or variable may be unsafe. Using strerror_s instead."
How to disable this kind deprecation? Do like bellow (VS2010):
Project -> Properties -> Configuration Properties -> C++ -> Processor -> Processor Definitions
And then add a macro definition "_CRT_SECURE_NO_WARNINGS", and use a ";" to separated with others
OK, Hit OK and enjoy the silence...
Tuesday, October 25, 2011
posted on 2011-10-25 17:26 Apollo Fang 閱讀(566) 評論(0) 編輯 收藏 引用 所屬分類: Miscellaneous