Open Nik-- opened 5 years ago
Building the 7zsfx using Visual Studio 10 and Windows SDK 7.1 fails with the following error:
=============================== All-x86 =============================== Creating ..\Intermediate\7zsd_All stdafx.cpp c:\users\nik\desktop\7zsfxmm\7zsfxmod\sources\stdafx.h(21) : error C2220: warning treated as error - no 'object' file generated c:\users\nik\desktop\7zsfxmm\7zsfxmod\sources\stdafx.h(21) : warning C4005: '_NO_EXCEPTIONS' : macro redefinition command-line arguments : see previous definition of '_NO_EXCEPTIONS' NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\Bin\amd64\cl.EXE"' : return code '0x2' Stop.
Removing the -WX flag from makefile results in this error:
=============================== All-x86 =============================== stdafx.cpp c:\users\nik\desktop\7zsfxmm\7zsfxmod\sources\stdafx.h(21) : warning C4005: '_NO_EXCEPTIONS' : macro redefinition command-line arguments : see previous definition of '_NO_EXCEPTIONS' stdafx.cpp c:\users\nik\desktop\7zsfxmm\7zsfxmod\sources\stdafx.h(21) : warning C4005: '_NO_EXCEPTIONS' : macro redefinition command-line arguments : see previous definition of '_NO_EXCEPTIONS' archive.cpp c:\users\nik\desktop\7zsfxmm\7zsfxmod\sources\stdafx.h(21) : warning C4005: '_NO_EXCEPTIONS' : macro redefinition command-line arguments : see previous definition of '_NO_EXCEPTIONS' cmdline.cpp c:\users\nik\desktop\7zsfxmm\7zsfxmod\sources\stdafx.h(21) : warning C4005: '_NO_EXCEPTIONS' : macro redefinition command-line arguments : see previous definition of '_NO_EXCEPTIONS' Config.cpp c:\users\nik\desktop\7zsfxmm\7zsfxmod\sources\stdafx.h(21) : warning C4005: '_NO_EXCEPTIONS' : macro redefinition command-line arguments : see previous definition of '_NO_EXCEPTIONS' NMAKE : fatal error U1073: don't know how to make 'sources/Exceptions.cpp' Stop.
Building the 7zsfx using Visual Studio 10 and Windows SDK 7.1 fails with the following error:
Removing the -WX flag from makefile results in this error: