So, I went back and added the defines, etc. as per the notes. I still have a few errors, one of which I worked around, but the other I can't figure out. Here's the output from MSVS:
Code:
12>cpu16.cpp 12>C:\Users\stuar\Documents\mame\src\emu\devfind.h(644,1): error C2680: 'DeviceClass *': invalid target type for dynamic_cast 12>C:\Users\stuar\Documents\mame\src\emu\devfind.h(644,1): error C2680: with 12>C:\Users\stuar\Documents\mame\src\emu\devfind.h(644,1): error C2680: [ 12>C:\Users\stuar\Documents\mame\src\emu\devfind.h(644,1): error C2680: DeviceClass=mc68hc16z1_device 12>C:\Users\stuar\Documents\mame\src\emu\devfind.h(644,1): error C2680: ] 12>C:\Users\stuar\Documents\mame\src\emu\devfind.h(644,1): error C2680: this->m_target = dynamic_cast(device); 12>C:\Users\stuar\Documents\mame\src\emu\devfind.h(644,1): error C2680: ^ 12>C:\Users\stuar\Documents\mame\src\emu\devfind.h(644,1): message : 'mc68hc16z1_device': class must be defined before using in a dynamic_cast 12>C:\Users\stuar\Documents\mame\src\emu\devfind.h(644,1): message : this->m_target = dynamic_cast(device); 12>C:\Users\stuar\Documents\mame\src\emu\devfind.h(644,1): message : ^ 12>C:\Users\stuar\Documents\mame\src\emu\devfind.h(636): message : while compiling class template member function 'bool device_finder::findit(validity_checker *)' 12>C:\Users\stuar\Documents\mame\src\emu\devfind.h(636): message : { 12>C:\Users\stuar\Documents\mame\src\devices\cpu\m68hc16\cpu16.h(125): message : see reference to class template instantiation 'device_finder' being compiled 12>C:\Users\stuar\Documents\mame\src\devices\cpu\m68hc16\cpu16.h(125): message : DECLARE_DEVICE_TYPE(MC68HC16Z1, mc68hc16z1_device) 331>Generating Code...
I would really appreciate it if anyone else sees this and what they do about it. Thank you!
|