Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building fails #5

Open
Nik-- opened this issue Feb 4, 2019 · 0 comments
Open

Building fails #5

Nik-- opened this issue Feb 4, 2019 · 0 comments

Comments

@Nik--
Copy link

Nik-- commented Feb 4, 2019

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant