My mame source is compiling fine using MINGW64, but Mame64.exe is crashing when I try to run my new driver. So, I figured I would build in VS2017 in order to have better debugging tools...
[MINGW64] make vs2017 SUBTARGET=mhavoc SOURCES=src\mame\drivers\mhavoc.cpp PYTHON_EXECUTABLE=c:/msys64/mingw64/bin/python.exe
and Python sucessfully generated my 88 projects and the .sln file.
Opening the solution in VS2017 is fine but Im getting some strange compilation errors that I have not seen before. Any ideas?
1>c:\svn\git\xxx.mame\src\emu\devdelegate.h(90): fatal error C1001: An internal error has occurred in the compiler.
1>(compiler file 'msc1.cpp', line 1518)
1> To work around this problem, try simplifying or changing the program near the locations listed above.
1>Please choose the Technical Support command on the Visual C++
1> Help menu, or open the Technical Support help file for more information
1>c:\svn\git\xxx.mame\src\emu\devdelegate.h(114): note: see reference to class template instantiation 'device_delegate<Signature>' being compiled
I'm running VS2017 15.8.2 which should be pretty close to current release. This is on Windows 10 64-bit. I get the same errors no matter if I compile in Win32 or x64.