Compiling platformX86UNIX/x86UNIXDedicatedStub.cc In file included from platformX86UNIX/x86UNIXDedicatedStub.cc"> gcc cannot finish compiling Dedicated Server | Torque Game Engine | Forums | Community | GarageGames.com

Game Development Community

gcc cannot finish compiling Dedicated Server

by Nathan Martin · in Torque Game Engine · 08/16/2002 (7:53 am) · 4 replies

Everytime I try to compile the dedicated server of torque using "make dedicated" I keep getting this:

[tron@fs torque]$ make dedicated
--> Compiling platformX86UNIX/x86UNIXDedicatedStub.cc
In file included from platformX86UNIX/x86UNIXDedicatedStub.cc:28:
platformX86UNIX/glu_func.h:14: 'int (*gluProject) (double, double,
double, const double *, const double *, const int *, GLdouble *,
GLdouble *, GLdouble *)' redeclared as different kind of symbol
platformX86UNIX/glu_func.h:14: previous declaration of 'int gluProject
(double, double, double, const double *, const double *, const int *,
GLdouble *, GLdouble *, GLdouble *)'
platformX86UNIX/glu_func.h:15: 'int (*gluUnProject) (double, double,
double, const double *, const double *, const int *, GLdouble *,
GLdouble *, GLdouble *)' redeclared as different kind of symbol
platformX86UNIX/glu_func.h:15: previous declaration of 'int
gluUnProject (double, double, double, const double *, const double *,
const int *, GLdouble *, GLdouble *, GLdouble *)'
make[1]: *** [out.GCC3.RELEASE/platformX86UNIX/x86UNIXDedicatedStub.obj] Error 1
make: *** [dedicated] Error 2
[tron@fs torque]$


I don't really understand what the problem is, I've checked the files and I see nothing wrong. I have compiled the client game of torque successfully without any problems.

#1
08/17/2002 (9:31 am)
I thought I fixed that. Are you using the latest HEAD code?
#2
08/17/2002 (3:40 pm)
I'm using the latest release of Torque.
#3
08/17/2002 (5:05 pm)
I guess you mean release 1.1.2. Sadly, it looks like the fix didn't make it in for this release. You can fix it be changing the line in engine/targets.torque.mk from this:

$(DIR.OBJ)/$(EXE_DEDICATED_NAME)$(EXT.EXE): CFLAGS += $(INCLUDES_$(OS))

to this: (add the -DDEDICATED)

$(DIR.OBJ)/$(EXE_DEDICATED_NAME)$(EXT.EXE): CFLAGS += -DDEDICATED $(INCLUDES_$(OS))

This is on or about line 534 of the file.
#4
08/17/2002 (9:08 pm)
Thank you so much! That fixed it :)