chrislake / 7zsfxmm

7-Zip sfx Modified Module
GNU Lesser General Public License v3.0
64 stars 25 forks source link

Building fails #5

Open Nik-- opened 5 years ago

Nik-- commented 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.