In Visual Studio 2010 (and possibly in other versions), set the C ++ / advanced 'show includes' parameter to Yes or add the / showIncludes command line parameter.
Then compile one file at a time and find the assembly output window for the alert number you are looking for, and it will show a tree of include files that generate this alert.
This method is useful for most build problems caused by included files.
EDIT: Make sure you turn off / showIncludes when the problem is fixed, as it may interfere with other compiler options (e.g. / MP (assembly with multiple processes) is disabled).
To suppress the warning, add the files containing the insult to the suppression block 4995, as suggested by Greg Huggil above. This can be either at the top of the source file, or in a precompiled header, or in the forced inclusion file included in the project (C ++ / Advanced / Forced Include File).
The specific problem with errors in CRT version 4995 is that they seem to be generated every time the code calls deprecated functions, even if warning 4995 was suppressed when deprecated functions were declared.
persiflage
source share