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
(e) [email protected]
(w) www.bnl.gov/nsls2