1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 <2018> 2019 2020 2021 2022 2023 2024 | Index | 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 <2018> 2019 2020 2021 2022 2023 2024 |
<== Date ==> | <== Thread ==> |
---|
Subject: | mca compilation fails on windows 7, keyword re-definition |
From: | "Gofron, Kazimierz" <[email protected]> |
To: | "[email protected]" <[email protected]> |
Date: | Thu, 8 Feb 2018 05:46:06 +0000 |
Hi, The compilation of mca-r7-6 fails on Windows 7 with VS Community Edition 2017.
Several places suggest defining
_ALLOW_KEYWORD_MACROS, or preprocessor definition _XKEYCHECK_H;. Where should this be defined in the EPICS environment on Windows. Visual Studio Community Edition 2017 Strawberry perl Windows 7 professional, 64 bit make 4.1 base-3.15.5 === c:\epics\synApps\support\mca-R7-6>make -sj DSA2000.cpp c:\epics\synapps\support\mca-r7-6\mcaapp\canberrasrc\nmc_sys_defs.h(89): warning C4005: 'ERROR': macro redefinition C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\um\wingdi.h(118): note: see previous definition of 'ERROR' C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.1 2.25827\include\xkeycheck.h(207): warning C4005: 'inline': macro redefinition ../../../include/os/WIN32\pcap-stdinc.h(69): note: see previous definition of 'inline' C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.12.25827\include\xkeycheck.h(260): fatal error C1189: #error: The C++ Standard Library forbids macroizing keywords. Enable warning C4005 to find the forbidden
macro. C:/epics/base-3.15.5/configure/RULES_BUILD:237: recipe for target 'DSA2000.obj' failed make[3]: *** [DSA2000.obj] Error 2 C:/epics/base-3.15.5/configure/RULES_ARCHS:58: recipe for target 'install.windows-x64' failed make[2]: *** [install.windows-x64] Error 2 C:/epics/base-3.15.5/configure/RULES_DIRS:84: recipe for target 'CanberraSrc.install' failed make[1]: *** [CanberraSrc.install] Error 2 C:/epics/base-3.15.5/configure/RULES_DIRS:84: recipe for target 'mcaApp.install' failed make: *** [mcaApp.install] Error 2 Kazimierz Gofron NSLS-II Controls Group Brookhaven National Laboratory (p) +1 (631) 344 5283 (f) +1 (631) 344 8085 |