Quake II Evolved and XCode

Post: #1
I downloaded the source code to Quake 2 Evolved from http://www.quake2evolved.com and then did the following:
- created a Carbon based project
- added the Q2E source to the project
- added the OpenGL and OpenAL frameworks to the project
- hit 'build'
I then get the following error (removed non-relavent details):

qshared/q_shared.h:138: error: parse error before numeric constant

below is a snippet from the file, with line 138 corresponding to the the 'typdef enum' line:
// =====================================================================

typedef unsigned char         byte;
typedef enum {false, true}    qboolean;

Can anyone suggest what could be wrong?
Quote this message in a reply
Posts: 5,143
Joined: 2002.04
Post: #2
my guess is that something has #define'd true and false to 1 and 0 respectively.

you can check that by using Xcode's "preprocess" command and searching for this line in the mess that results.

if that's the case, you can probably fix it by #undef'ing false and true before the enum declaration.
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Fruitz of dojo Mac OS X Quake port... maaaaark 6 6,460 Mar 11, 2005 07:25 PM
Last Post: PowerMacX
  BSP (Quake 3) PVS Issues dstaudigel 6 6,699 Jun 20, 2003 11:17 PM
Last Post: gwihlidal
  Simple Quake Variant? deekpyro 8 7,858 Mar 17, 2003 12:21 PM
Last Post: burden