Jump to content



Photo

Problem compiling VPinMAME


  • Please log in to reply
2 replies to this topic

#1 MrGrynch

MrGrynch

    Enthusiast

  • Members
  • PipPipPip
  • 127 posts

  • Flag: United States of America

  • Favorite Pinball: Blood Machines, Fish Tales, Attack from Mars

Posted 19 April 2023 - 12:51 AM

I've downloaded the source for PinMame, and am seeing the following problems:

 

3>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.16.27023\include\xkeycheck.h(207): warning C4005: 'inline': macro redefinition
3>c:\users\dave roscoe\downloads\pinmame-master\src\win32com\displayinfolist.cpp: note: see previous definition of 'inline'
3>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.16.27023\include\xkeycheck.h(260): fatal error C1189: #error:  The C++ Standard Library forbids macroizing keywords. Enable warning C4005 to find the forbidden macro.
 
There are several of these errors preventing successful build.  I am building on Windows 11 with Visual Studio 2017 Community edition.  I used the batch file to create the solution and project files.  I then had to change the platform toolset (Visual Studio 2017 (v141)) and Windows SDK version (10.0.22621.0).
 
Any idea what is causing this?  I couldn't figure out how to enable the warning mentioned in the error output.  I tried /w1c4005 in the C/C++ configuration but that created its own error.
 
I appreciate any help!
 


#2 toxie

toxie

    VPF Veteran

  • VP Dev Team
  • PipPipPipPipPipPip
  • 5,734 posts
  • Location:berlin, germany

  • Flag: Germany

  • Favorite Pinball: AFM

Posted 19 April 2023 - 09:59 AM

hmmm.. weird.. have you tried deleting the inline stuff on top of the file in displayinfolist.cpp ?



#3 MrGrynch

MrGrynch

    Enthusiast

  • Members
  • PipPipPip
  • 127 posts

  • Flag: United States of America

  • Favorite Pinball: Blood Machines, Fish Tales, Attack from Mars

Posted 20 April 2023 - 01:50 AM

hmmm.. weird.. have you tried deleting the inline stuff on top of the file in displayinfolist.cpp ?

 

I assume you are referring to:

#if _MSC_VER >= 1700
 #ifdef inline
  #undef inline
 #endif
#endif

I tried several ways of mitigating this, but had the same issue.  Looking a little deeper, the first time I see this is when trying to compile: Controller.cpp and it appears all others after