gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

Beginners > ALIGN4 syntax error - please help.

#10654 - goro - Thu Sep 11, 2003 5:28 pm

Hi I'm trying to include a header file that contains a palette but I keep getting syntax errors :-
Code:
C:/PROJECTS/GBA/5/palOut.h:4: syntax error before `=' token
In file included from C:/PROJECTS/GBA/5/5.cpp:10:


Code:
//  File generated by: Map Ed v0.95 Lite

const u16 backgroundPalette[256]ALIGN4 = {
0x0000,0x7e6a,0x7463,0x7f52,0x7d44,0x352c,0x737b,0x49f1,0x5ab5,0x7ff9,0x7fd4,0x7dc7,0x18a6,0x7ece,0x7fff,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x000


Please help...

#10658 - tepples - Thu Sep 11, 2003 6:02 pm

It appears you didn't define ALIGN4 as something beforehand.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#10660 - goro - Thu Sep 11, 2003 6:43 pm

-Could an moderator/admin please delete this post as it has been answered at
http://forum.gbadev.org/viewtopic.php?t=2058

Sorry for the double-post but I got carried away in an hour of desperation!