Development > Coding

Revision 233 + gl_glx.c Joystick error

(1/1)

Hoehrer:
With the current Revision 233 i get the following error on compile:


--- Code: ---make targets BUILDDIR=debugi386 CFLAGS="-Wall -pipe -Dstricmp=strcasecmp -I/usr/include/SDL -D_REENTRANT -DUSE_SDL -DUSE_ALSA -DJoystick -DHAVE_DGA -DHAVE_VIDMODE -DHAVE_GETTEXT -g -DLINUX_VERSION='\"0.12 Debug\"'"
make[1]: Entering directory `src/linux'
gcc -Wall -pipe -Dstricmp=strcasecmp -I/usr/include/SDL -D_REENTRANT -DUSE_SDL -DUSE_ALSA -DJoystick -DHAVE_DGA -DHAVE_VIDMODE -DHAVE_GETTEXT -g -DLINUX_VERSION='"0.12 Debug"' -fPIC  -o debugi386/ref_gl/gl_glx.o -c ../linux/gl_glx.c -I/usr/X11R6/include
../linux/gl_glx.c: In function 'OpenJoystick':
../linux/gl_glx.c:973: error: 'joy_fd' undeclared (first use in this function)
../linux/gl_glx.c:973: error: (Each undeclared identifier is reported only once
../linux/gl_glx.c:973: error: for each function it appears in.)
../linux/gl_glx.c: In function 'PlatformJoyCommands':
../linux/gl_glx.c:993: error: 'joy_fd' undeclared (first use in this function)
../linux/gl_glx.c: In function 'CloseJoystick':
../linux/gl_glx.c:1008: error: 'joy_fd' undeclared (first use in this function)
make[1]: *** [debugi386/ref_gl/gl_glx.o] Fehler 1
make[1]: Leaving directory `src/linux'

--- End code ---


Werner

Mattn:
try to set the joystick var to no in the makefile. i'll fix this with the next commit (hopefully)

Hoehrer:

--- Quote from: "Mattn" ---try to set the joystick var to no in the makefile. i'll fix this with the next commit (hopefully)
--- End quote ---


Thanks, that removed _this_ error. Let's see if i get it to run again now :D

Werner

Mattn:
there was just a missing static int declaration - it should be fixed and is in svn (rev.234)

please report any problems.

Hoehrer:
Compiles fine with 234

Werner

Navigation

[0] Message Index

Go to full version