Quake II Evolved and XCode
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:
Can anyone suggest what could be wrong?
- 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:
Code:
// =====================================================================
typedef unsigned char byte;
typedef enum {false, true} qboolean;Can anyone suggest what could be wrong?
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.
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.
Possibly Related Threads...
| Thread: | Author | Replies: | Views: | Last Post | |
| Fruitz of dojo Mac OS X Quake port... | maaaaark | 6 | 4,061 |
Mar 11, 2005 07:25 PM Last Post: PowerMacX |
|
| BSP (Quake 3) PVS Issues | dstaudigel | 6 | 3,601 |
Jun 20, 2003 11:17 PM Last Post: gwihlidal |
|
| Simple Quake Variant? | deekpyro | 8 | 4,100 |
Mar 17, 2003 12:21 PM Last Post: burden |
|

