Opened 11 years ago

Closed 11 years ago

#723 closed bug (fixed (in master))

main-gcu.c compile errors

Reported by: Mangojuice Owned by:
Milestone: 3.1.1 beta Keywords:
Cc:

Description (last modified by takkaria)

I get several compile errors when trying to compile; I'm using Mac / Unix. The compile errors were resolved when I removed the lines undefining/redefining "bool" and "term" in main-gcu.c.

main-gcu.c: In function 'Term_xtra_gcu_alive':
main-gcu.c:298: error: dereferencing pointer to incomplete type
main-gcu.c:298: error: dereferencing pointer to incomplete type
main-gcu.c:298: warning: left-hand operand of comma expression has no effect
main-gcu.c:298: warning: statement with no effect
main-gcu.c: In function 'Term_nuke_gcu':
main-gcu.c:391: error: dereferencing pointer to incomplete type
main-gcu.c:391: error: dereferencing pointer to incomplete type
main-gcu.c:391: warning: left-hand operand of comma expression has no effect
main-gcu.c:391: warning: statement with no effect
main-gcu.c: In function 'Term_xtra_gcu':
main-gcu.c:513: error: dereferencing pointer to incomplete type
main-gcu.c: In function 'Term_text_gcu':
main-gcu.c:625: error: dereferencing pointer to incomplete type
main-gcu.c:639: error: dereferencing pointer to incomplete type
main-gcu.c: In function 'init_gcu':
main-gcu.c:721: error: 'bool' undeclared (first use in this function)
main-gcu.c:721: error: (Each undeclared identifier is reported only once
main-gcu.c:721: error: for each function it appears in.)
main-gcu.c:721: error: parse error before "use_big_screen"
main-gcu.c:729: error: 'use_big_screen' undeclared (first use in this function)

Change History (5)

comment:1 Changed 11 years ago by takkaria

  • Milestone changed from Triage to 3.1.1 beta

comment:2 Changed 11 years ago by takkaria

  • Description modified (diff)

comment:3 Changed 11 years ago by takkaria

What version of OS X are you on? This works fine here on 10.5.6.

comment:4 Changed 11 years ago by takkaria

The #undef bool is causing this; removing it works on 10.4. 10.5 works equally well either way; need to test to see if modern BSDs/Linux can deal with that as well.

comment:5 Changed 11 years ago by takkaria

  • Resolution set to fixed
  • Status changed from new to closed

in [fd01a49] (SVN r1177)

Note: See TracTickets for help on using tickets.