Jump to content

Errors With Compiling 0.82 Of Mame32 Plus


Recommended Posts

I keep getting this error when compiling

 

src/drivers/neogeo.c:6518:68: macro "ROM_LOAD" requires 4 arguments, but only 3
given
src/drivers/neogeo.c:6522: error: `ROM_LOAD' undeclared here (not in a function)

src/drivers/neogeo.c:6522: error: initializer element is not constant
src/drivers/neogeo.c:6522: error: (near initialization for `rom_svcd[30]')
src/drivers/neogeo.c:6522: error: parse error before '{' token
src/drivers/neogeo.c:6522: warning: missing braces around initializer
src/drivers/neogeo.c:6522: warning: (near initialization for `rom_svcd[31]')
src/drivers/neogeo.c:6522: warning: initialization makes integer from pointer wi
thout a cast
src/drivers/neogeo.c:6522: error: initializer element is not constant
src/drivers/neogeo.c:6522: error: (near initialization for `rom_svcd[31]')
src/drivers/neogeo.c:6523: error: parse error before '{' token
src/drivers/neogeo.c:6545:68: macro "ROM_LOAD" requires 4 arguments, but only 3
given
src/drivers/neogeo.c:6549: error: `ROM_LOAD' undeclared here (not in a function)

src/drivers/neogeo.c:6549: error: initializer element is not constant
src/drivers/neogeo.c:6549: error: (near initialization for `rom_svch[30]')
src/drivers/neogeo.c:6549: error: parse error before '{' token
src/drivers/neogeo.c:6549: warning: missing braces around initializer
src/drivers/neogeo.c:6549: warning: (near initialization for `rom_svch[31]')
src/drivers/neogeo.c:6549: warning: initialization makes integer from pointer wi
thout a cast
src/drivers/neogeo.c:6549: error: initializer element is not constant
src/drivers/neogeo.c:6549: error: (near initialization for `rom_svch[31]')
src/drivers/neogeo.c:6550: error: parse error before '{' token
src/drivers/neogeo.c:6600: warning: implicit declaration of function `NEO_BIOS_S
OUND_128k'
src/drivers/neogeo.c:6602: warning: missing braces around initializer
src/drivers/neogeo.c:6602: warning: (near initialization for `rom_samsho5[6]')
src/drivers/neogeo.c:6602: error: initializer element is not constant
src/drivers/neogeo.c:6602: error: (near initialization for `rom_samsho5[6]._name
')
src/drivers/neogeo.c:6602: error: parse error before '{' token
src/drivers/neogeo.c:6602: error: initializer element is not constant
src/drivers/neogeo.c:6602: error: (near initialization for `rom_samsho5[6]')
src/drivers/neogeo.c:6603: error: parse error before '{' token
make: *** [obj/mame32p/drivers/neogeo.o] Error 1

Edited by Weirdanzeige
Link to comment
Share on other sites

and these are the drivers it keep giving me errors for

ROM_START( svcd )
ROM_REGION( 0x600000, REGION_CPU1, 0 )
ROM_LOAD16_WORD_SWAP( "269-p1.bin", 0x000000, 0x600000, CRC(74680d91) )

NEO_SFIX_128K( "269-s1.bin", CRC(bc670454) )

NEO_BIOS_SOUND_128K( "269-m1d.bin", CRC(21293972) )

ROM_REGION( 0x1000000, REGION_SOUND1, ROMREGION_SOUNDONLY )
ROM_LOAD( "269-v1d.bin", 0x000000, 0x400000, CRC(e7203930) )
ROM_LOAD( "269-v2d.bin", 0x400000, 0x400000, CRC(675159c3) )
ROM_LOAD( "269-v3d.bin", 0x800000, 0x400000, CRC(f8810665) )
ROM_LOAD( "269-v4d.bin", 0xc00000, 0x400000. CRC(b5754ea3) )

NO_DELTAT_REGION

ROM_REGION( 0x4000000, REGION_GFX3, 0 )
ROM_LOAD16_BYTE( "269-c1d.bin", 0x0000000, 0x800000, CRC(465d473b) )
ROM_LOAD16_BYTE( "269-c2d.bin", 0x0000001, 0x800000, CRC(3eb28f78) )
ROM_LOAD16_BYTE( "269-c3d.bin", 0x1000000, 0x800000, CRC(f4d4ab2b) )
ROM_LOAD16_BYTE( "269-c4d.bin", 0x1000001, 0x800000, CRC(a69d523a) )
ROM_LOAD16_BYTE( "269-c5d.bin", 0x2000000, 0x800000, CRC(ba2a7892) )
ROM_LOAD16_BYTE( "269-c6d.bin", 0x2000001, 0x800000, CRC(37371ca1) )
ROM_LOAD16_BYTE( "269-c7d.bin", 0x3000000, 0x800000, CRC(56ac5fb9) )
ROM_LOAD16_BYTE( "269-c8d.bin", 0x3000001, 0x800000, CRC(de99e613) )
ROM_END

ROM_START( svch )
ROM_REGION( 0x600000, REGION_CPU1, 0 )
ROM_LOAD16_WORD_SWAP( "269-p1h.bin", 0x000000, 0x600000, CRC(31116bdb) )

NEO_SFIX_128K( "269-s1.bin", CRC(bc670454) )

NEO_BIOS_SOUND_128K( "269-m1d.bin", CRC(21293972) )

ROM_REGION( 0x1000000, REGION_SOUND1, ROMREGION_SOUNDONLY )
ROM_LOAD( "269-v1d.bin", 0x000000, 0x400000, CRC(e7203930) )
ROM_LOAD( "269-v2d.bin", 0x400000, 0x400000, CRC(675159c3) )
ROM_LOAD( "269-v3d.bin", 0x800000, 0x400000, CRC(f8810665) )
ROM_LOAD( "269-v4d.bin", 0xc00000, 0x400000. CRC(b5754ea3) )

NO_DELTAT_REGION

ROM_REGION( 0x4000000, REGION_GFX3, 0 )
ROM_LOAD16_BYTE( "269-c1d.bin", 0x0000000, 0x800000, CRC(465d473b) )
ROM_LOAD16_BYTE( "269-c2d.bin", 0x0000001, 0x800000, CRC(3eb28f78) )
ROM_LOAD16_BYTE( "269-c3d.bin", 0x1000000, 0x800000, CRC(f4d4ab2b) )
ROM_LOAD16_BYTE( "269-c4d.bin", 0x1000001, 0x800000, CRC(a69d523a) )
ROM_LOAD16_BYTE( "269-c5d.bin", 0x2000000, 0x800000, CRC(ba2a7892) )
ROM_LOAD16_BYTE( "269-c6d.bin", 0x2000001, 0x800000, CRC(37371ca1) )
ROM_LOAD16_BYTE( "269-c7d.bin", 0x3000000, 0x800000, CRC(56ac5fb9) )
ROM_LOAD16_BYTE( "269-c8d.bin", 0x3000001, 0x800000, CRC(de99e613) )
ROM_END

ROM_START( samsho5 )
ROM_REGION( 0x800000, REGION_CPU1, 0 )
ROM_LOAD16_WORD_SWAP( "270-p1.bin", 0x000000, 0x800000, CRC(e67f3ee2) )

/* The Encrypted Boards do _not_ have an s1 rom, data for it comes from the Cx ROMs */
       ROM_REGION( 0x20000, REGION_GFX1, 0 )
       ROM_FILL(                 0x000000, 0x20000, 0 )
       ROM_REGION( 0x20000, REGION_GFX2, 0 )
       ROM_LOAD( "sfix.sfx",  0x000000, 0x20000, CRC(354029fc) SHA1(4ae4bf23b4c2acff875775d4cbff5583893ce2a1) )

NEO_BIOS_SOUND_128k( "270-m1.bin", CRC(18114fb1) )

ROM_REGION( 0x1000000, REGION_SOUND1, ROMREGION_SOUNDONLY )
ROM_LOAD( "270-v1.bin", 0x000000, 0x800000, CRC(e5c71669) )
ROM_LOAD( "270-v2.bin", 0x800000, 0x800000, CRC(70b7083d) )

NO_DELTAT_REGION

ROM_REGION( 0x4000000, REGION_GFX3, 0 )
ROM_LOAD16_BYTE( "270-c1.bin", 0x0000000, 0x8000000, CRC(1e78219e) ) /* Plane 0,1 */
ROM_LOAD16_BYTE( "270-c2.bin", 0x0000001, 0x8000000, CRC(31f1de05) ) /* Plane 2,3 */
ROM_LOAD16_BYTE( "270-c3.bin", 0x1000000, 0x8000000, CRC(bdf0cf9c) ) /* Plane 0.1 */
ROM_LOAD16_BYTE( "270-c4.bin", 0x1000001, 0x8000000, CRC(0cdeab05) ) /* Plane 2,3 */
ROM_LOAD16_BYTE( "270-c5.bin", 0x2000000, 0x8000000, CRC(4c9abf9f) ) /* Plane 0,1 */
ROM_LOAD16_BYTE( "270-c6.bin", 0x2000001, 0x8000000, CRC(c77c4c11) ) /* Plane 2,3 */
ROM_LOAD16_BYTE( "270-c7.bin", 0x3000000, 0x8000000, CRC(b641dc56) ) /* Plane 0,1 */
ROM_LOAD16_BYTE( "270-c8.bin", 0x3000001, 0x8000000, CRC(1d168ad0) ) /* Plane 2,3 */
ROM_END

Link to comment
Share on other sites

WTF? AFAIK, you have four arguments. That's really messed up. Make sure the code right above doesn't have errors and the drivers match the other ones. Also, don't the functions need a semilcolon after them? (Can't say for sure since I don't play around with MAME much.)

Edited by StriderSkorpion
Link to comment
Share on other sites

ROM_START( svcd )
ROM_REGION( 0x600000, REGION_CPU1, 0 )
ROM_LOAD16_WORD_SWAP( "269-p1.bin", 0x000000, 0x600000, CRC(74680d91) )

NEO_SFIX_128K( "269-s1.bin", CRC(bc670454) )

NEO_BIOS_SOUND_128K( "269-m1.bin", CRC(21293972) )

ROM_REGION( 0x1000000, REGION_SOUND1, ROMREGION_SOUNDONLY )
ROM_LOAD( "269-v1d.bin", 0x000000, 0x400000, CRC(e7203930) )
ROM_LOAD( "269-v2d.bin", 0x400000, 0x400000, CRC(675159c3) )
ROM_LOAD( "269-v3d.bin", 0x800000, 0x400000, CRC(f8810665) )
ROM_LOAD( "269-v4d.bin", 0xc00000, 0x400000, CRC(b5754ea3) )

NO_DELTAT_REGION

ROM_REGION( 0x4000000, REGION_GFX3, 0 )
ROM_LOAD16_BYTE( "269-c1d.bin", 0x0000000, 0x800000, CRC(465d473b) )
ROM_LOAD16_BYTE( "269-c2d.bin", 0x0000001, 0x800000, CRC(3eb28f78) )
ROM_LOAD16_BYTE( "269-c3d.bin", 0x1000000, 0x800000, CRC(f4d4ab2b) )
ROM_LOAD16_BYTE( "269-c4d.bin", 0x1000001, 0x800000, CRC(a69d523a) )
ROM_LOAD16_BYTE( "269-c5d.bin", 0x2000000, 0x800000, CRC(ba2a7892) )
ROM_LOAD16_BYTE( "269-c6d.bin", 0x2000001, 0x800000, CRC(37371ca1) )
ROM_LOAD16_BYTE( "269-c7d.bin", 0x3000000, 0x800000, CRC(56ac5fb9) )
ROM_LOAD16_BYTE( "269-c8d.bin", 0x3000001, 0x800000, CRC(de99e613) )
ROM_END

 

and

 

ROM_START( svch )
ROM_REGION( 0x600000, REGION_CPU1, 0 )
ROM_LOAD16_WORD_SWAP( "269-p1h.bin", 0x000000, 0x600000, CRC(31116bdb) )

Link to comment
Share on other sites

I have no idea. I just re-wrote the thing. (Actually, I made them with a test version of the Generator I'm working on :()

Link to comment
Share on other sites

This a working driver just testing to see how it looks on the thread.I think your problem might be too many spaces or lack of.

 

ROM_START( svc ) /* BootLeg */
       ROM_REGION( 0x600000, REGION_CPU1, 0 )
       ROM_LOAD16_WORD_SWAP( "269-p1.bin ", 0x000000, 0x600000, CRC(e1a3179a) SHA1(b964376e7e2bed81048d04f67346dd693a40cef1) )

       NEO_SFIX_128K( "269-s1.bin ", CRC(3334ac31) SHA1(ea7c676d5913ca1d524bd3df3d98f216564cfbb5) )

       NEO_BIOS_SOUND_128K( "269-m1d.bin ", CRC(21293972) SHA1(fefbda15a1055261574a9a6719bdfde3e452a240) )

       ROM_REGION( 0X1000000, REGION_SOUND1, ROMREGION_SOUNDONLY )
       /* decrypted */
       ROM_LOAD( "269-v1.bin ", 0x000000, 0x400000, CRC(e7203930) SHA1(c6753df1db87d223ee39ffac920da449127dbcdf) )
       ROM_LOAD( "269-v2.bin ", 0x400000, 0x400000, CRC(675159c3) SHA1(c3a4f6db61dfab5bc31bfe94e1c3915676347031) )
       ROM_LOAD( "269-v3.bin ", 0x800000, 0x400000, CRC(f8810665) SHA1(fc1e94629a5124076959938257a80d04b2e871eb) )
       ROM_LOAD( "269-v4.bin ", 0xc00000, 0x400000, CRC(b57b4ea3) SHA1(873dc7f5eae687bc70af01ea310e935287de0ebf) )

       NO_DELTAT_REGION

       ROM_REGION( 0x4000000, REGION_GFX3, 0 )
       ROM_LOAD16_BYTE( "269-c1.bin ", 0x0000000, 0x800000, CRC(465d473b) SHA1(0b2be2b2657c2ae021ec91515d1d6306179751d5) ) /* Plane 0,1 */ 
       ROM_LOAD16_BYTE( "269-c2.bin ", 0x0000001, 0x800000, CRC(3eb28f78) SHA1(df1b096fe95796db1515b69f74266ed13dd9ee56) ) /* Plane 2,3 */
       ROM_LOAD16_BYTE( "269-c3.bin ", 0x1000000, 0x800000, CRC(f4d4ab2b) SHA1(a19788435173540469fe5d07429a83dde6d701a0) ) /* Plane 0,1 */
       ROM_LOAD16_BYTE( "269-c4.bin ", 0x1000001, 0x800000, CRC(a69d523a) SHA1(98d8dac2e40f71b5b8426d3c77476a0a20783181) ) /* Plane 2,3 */
       ROM_LOAD16_BYTE( "269-c5.bin ", 0x2000000, 0x800000, CRC(ba2a7892) SHA1(eed45e1330dcc9f610598dc53977bf3a81dd161a) ) /* Plane 0,1 */
       ROM_LOAD16_BYTE( "269-c6.bin ", 0x2000001, 0x800000, CRC(37371ca1) SHA1(8aaa1b9ea34470085d9944c9ad64cfb0ffe09859) ) /* Plane 2,3 */
       ROM_LOAD16_BYTE( "269-c7.bin ", 0x3000000, 0x800000, CRC(56ac5fb9) SHA1(74cb0d57060d25e35f76a9820f607633bd1b9c2c) ) /* Plane 0,1 */
       ROM_LOAD16_BYTE( "269-c8.bin ", 0x3000001, 0x800000, CRC(de99e613) SHA1(f28c6af4a31a937e5b441d4b860e3ccca725f27a) ) /* Plane 2,3 */
ROM_END

Edited by james
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...