Nmap Development mailing list archives
Building with VS-Express 2013
From: "Gisle Vanem" <gvanem () yahoo no>
Date: Thu, 4 Sep 2014 13:01:50 +0200
I've tried and failed to build Nmap using Visual-Studio 2013 Express on my new Win 8.1 computer. It has worked for years on Win-XP using VS 2010 Express (cl v. 16.x). But now the C++ headers in CL v.18.x seems to require <system_error> and <errno.h> everywhere. Analysing this, the blame seems to be in nbase/nbase_winunix.h: #define _INC_ERRNO /* suppress errno.h */ #define _ERRNO_H_ /* Also for errno.h suppression */ #define _SYSTEM_ERROR_ This causes (in e.g. FPEngine.cc): f:\ProgramFiler-x86\VSExpress-2013\VC\include\xiosbase(222) : error C2504: 'system_error' : base class undefinedf:\ProgramFiler-x86\VSExpress-2013\VC\include\xiosbase(224) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
f:\ProgramFiler-x86\VSExpress-2013\VC\include\xiosbase(224) : error C2143: syntax error : missing ',' before '&'f:\ProgramFiler-x86\VSExpress-2013\VC\include\xiosbase(230) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
f:\ProgramFiler-x86\VSExpress-2013\VC\include\xiosbase(230) : error C2143: syntax error : missing ',' before '&' f:\ProgramFiler-x86\VSExpress-2013\VC\include\xiosbase(224) : error C2065: '_Errcode' : undeclared identifierf:\ProgramFiler-x86\VSExpress-2013\VC\include\xiosbase(227) : error C2614: 'std::ios_base::failure' : illegal member initialization: 'system_error' is not a base or member
etc. Another thing. In scan_engine.h: #define PS_NONE 0 'PS_NONE' is now also an enum member in <MS_SDK-8.1-root>/include/ShObjIdl.h. Included from <shlobj.h>. Anybody here who have had success building Nmap+Nping etc. on Win 8.x?--gv
_______________________________________________ Sent through the dev mailing list http://nmap.org/mailman/listinfo/dev Archived at http://seclists.org/nmap-dev/
Current thread:
- Building with VS-Express 2013 Gisle Vanem (Sep 04)