Hi,
On 01/15/2002 12:11:04 PM MST Phillip Davis wrote:
>
>Hi, I have been trying to compile xmame for linux ppc and not getting
>anywhere. the compile halts at the v60 cpu with this error:
>
>src/cpu/v60/v60.c: In function `v60_info':
>src/cpu/v60/v60.c:551: dereferencing pointer to incomplete type
>make: *** [xmame.obj/cpu/v60/v60.o] Error 1
>
>and the block of code it seems to be referring to is this:
>
> if(regnum > CPU_INFO_REG && regnum < CPU_INFO_REG + V60_REGMAX)
>{
> int reg = regnum - CPU_INFO_REG - 1;
> sprintf(buffer[which], "%s:%08X", v60_reg_names[reg],
>r->reg[reg]);
> }
>
>where the exact line 551 is the sprintf statement.
You should also get some warnings about redefinition of PPC?
Some structures define a "PPC" member, but on LinuxPPC PPC is
predefined by the compiler.
I did as quick solution add -UPPC to the compile flags and then it
compiled for me.
Anyway, either the compiler or the mame sources should be changed
regarding the use of the string PPC. I think the compiler is at fault,
as it pollutes the name space.
regards,
chris
_______________________________________________
Xmame mailing list
[EMAIL PROTECTED]
http://toybox.twisted.org.uk/mailman/listinfo/xmame