c++visual-studio-2022

Can't find External Includes level warning tab in visual studio 2022


I'm following this tutorial and in increasing your warning levels under For Visual Studio users says: From C/C++ > External Includes tab, set External Header Warning Level to Level3 (/external:W3). This tells the compiler to compile standard library headers at warning level 3 (instead of 4) so that compiling those headers doesn’t trigger this warning. and I don't find the External Includes tab searching in the ofical documentation I don't understand how to use the commands eg: /external:W3 where to put it.
SOLUTION: I tried the solution in the post but I didn't mean that I guess. Now viewing back I found the tab in the proper documentation from microsoft. https://devblogs.microsoft.com/cppblog/customized-warning-levels-and-code-analysis-for-external-headers/ Indeed is in C/C++>External includes>External warning level that by default is in

Inherit Project Warning Level

so I've to change It to W3 but I coulnd't do It without the answer because I didn't understand the W options so thanks anyway


Solution

  • In Visual Studio 2022 Community Édition the option is as exactly where you described it. From your project properties you select C/C++ to develop it and then you should find the External includes entry. Once selected you'll see on the right panel few options that you can set among which you be able to change the warning level.