Title
#windows
zwass

zwass

09/26/2017, 12:18 AM
Severity	Code	Description	Project	File	Line	Suppression State
Error	C2220	warning treated as error - no 'object' file generated	osquery_events	C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\xutility	2372	
Warning	C4996	'std::copy::_Unchecked_iterators::_Deprecate': Call to 'std::copy' with parameters that may be unsafe - this call relies on the caller to check that the passed values are correct. To disable this warning, use -D_SCL_SECURE_NO_WARNINGS. See documentation on how to use Visual C++ 'Checked Iterators'	osquery_events	C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\xutility	2372	
Error	C2220	warning treated as error - no 'object' file generated	osquery_logger_plugins	C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\xutility	2983	
Warning	C4996	'std::equal::_Unchecked_iterators::_Deprecate': Call to 'std::equal' with parameters that may be unsafe - this call relies on the caller to check that the passed values are correct. To disable this warning, use -D_SCL_SECURE_NO_WARNINGS. See documentation on how to use Visual C++ 'Checked Iterators'	osquery_logger_plugins	C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\xutility	2983	
Error	C2220	warning treated as error - no 'object' file generated	osquery_aws_util	C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\xutility	2983
5twenty9

5twenty9

05/17/2018, 11:07 AM
I'm building from VS2015 IDE and get three of these D_SCL_SECURE_NO_WARNINGS warnings, and because warnings are treated as errors as of now I don't have a successful build from VS directly. running via make-win64-binaries.bat works just fine. @zwass it looks like you worked around this by not building from VS IDE - maybe I'm wrong and you got a workaround?