gentilkiwi / mimikatz

A little tool to play with Windows security
http://blog.gentilkiwi.com/mimikatz
19.1k stars 3.65k forks source link

Can't compile with VS2019 Community #220

Closed Quixus closed 5 years ago

Quixus commented 5 years ago

I get four warnings and an error when I try to compile mimikatz: Severity Code Description Project File Line Suppression State Warning C4996 'wcsicmp': The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _wcsicmp. See online help for details. mimikatz C:\Users\mjordan\Documents\Git\mimikatz\mimikatz\modules\dpapi\packages\kuhl_m_dpapi_powershell.c 60

Severity Code Description Project File Line Suppression State Error C2220 warning treated as error - no 'object' file generated mimikatz C:\Users\mjordan\Documents\Git\mimikatz\mimikatz\modules\dpapi\packages\kuhl_m_dpapi_powershell.c 60

Severity Code Description Project File Line Suppression State Warning C28251 Inconsistent annotation for 'MIDL_user_allocate': this instance has no annotations. See c:\program files (x86)\windows kits\10\include\10.0.17763.0\shared\rpcndr.h(238). mimikatz C:\Users\mjordan\Documents\Git\mimikatz\modules\rpc\kull_m_rpc.h 44

Severity Code Description Project File Line Suppression State Warning C28251 Inconsistent annotation for 'MIDL_user_free': this instance has no annotations. See c:\program files (x86)\windows kits\10\include\10.0.17763.0\shared\rpcndr.h(239). mimikatz C:\Users\mjordan\Documents\Git\mimikatz\modules\rpc\kull_m_rpc.h 45

Severity Code Description Project File Line Suppression State Warning C28251 Inconsistent annotation for 'NTSTATUS': this instance has no annotations. See c:\program files (x86)\windows kits\10\include\10.0.17763.0\shared\bcrypt.h(39). mimikatz C:\Users\mjordan\Documents\Git\mimikatz\inc\wincred.h 86

Any ideas how to fix this?

Quixus commented 5 years ago

https://stackoverflow.com/questions/3317536/visual-studio-warning-c4996/3329714#3329714 fixed the issue.