MAMEWorld >> Programming
Previous thread Previous  View all threads Index   Next thread Next   Flat Mode Flat  

rubinstu
MAME Fan
Reged: 02/05/10
Posts: 20
Send PM
Re: Visual Studio lots of little errors
07/24/22 07:00 PM


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!







Entire thread
Subject Posted by Posted on
* Visual Studio lots of little errors rubinstu 07/21/22 02:21 PM
. * Re: Visual Studio lots of little errors Vas Crabb  07/22/22 10:32 AM
. * Re: Visual Studio lots of little errors rubinstu  07/23/22 04:36 AM
. * Re: Visual Studio lots of little errors rubinstu  07/24/22 07:00 PM
. * Re: Visual Studio lots of little errors MooglyGuy  07/24/22 07:49 PM
. * Re: Visual Studio lots of little errors rubinstu  07/25/22 04:39 AM
. * Re: Visual Studio lots of little errors MooglyGuy  08/06/22 02:00 PM
. * Re: Visual Studio lots of little errors MooglyGuy  07/22/22 09:19 AM
. * Re: Visual Studio lots of little errors mhoes  07/21/22 02:53 PM
. * Re: Visual Studio lots of little errors rubinstu  07/21/22 02:59 PM

Extra information Permissions
Moderator:  Pi 
0 registered and 39 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 473