Opened 16 years ago
Closed 16 years ago
#2904 closed bug (fixed)
libsdl joystick issues
Reported by: | scottmc | Owned by: | jackburton |
---|---|---|---|
Priority: | normal | Milestone: | R1 |
Component: | - General | Version: | R1/pre-alpha1 |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Platform: | All |
Description
While trying to build 1.2 branch svn version of libsdl (on hrev28118), I run into issues with the recent Joystick.h changes.
/bin/sh ./libtool --mode=compile gcc -g -O2 -I./include -D_GNU_SOURCE=1 -c ./src/video/bwindow/SDL_syswm.cc -o build/SDL_syswm.lo gcc -g -O2 -I./include -D_GNU_SOURCE=1 -c ./src/video/bwindow/SDL_syswm.cc -DPIC -o build/.libs/SDL_syswm.o gcc -g -O2 -I./include -D_GNU_SOURCE=1 -c ./src/video/bwindow/SDL_syswm.cc -o build/SDL_syswm.o >/dev/null 2>&1 /bin/sh ./libtool --mode=compile gcc -g -O2 -I./include -D_GNU_SOURCE=1 -c ./src/video/bwindow/SDL_sysyuv.cc -o build/SDL_sysyuv.lo gcc -g -O2 -I./include -D_GNU_SOURCE=1 -c ./src/video/bwindow/SDL_sysyuv.cc -DPIC -o build/.libs/SDL_sysyuv.o gcc -g -O2 -I./include -D_GNU_SOURCE=1 -c ./src/video/bwindow/SDL_sysyuv.cc -o build/SDL_sysyuv.o >/dev/null 2>&1 /bin/sh ./libtool --mode=compile gcc -g -O2 -I./include -D_GNU_SOURCE=1 -c ./src/joystick/beos/SDL_bejoystick.cc -o build/SDL_bejoystick.lo gcc -g -O2 -I./include -D_GNU_SOURCE=1 -c ./src/joystick/beos/SDL_bejoystick.cc -DPIC -o build/.libs/SDL_bejoystick.o In file included from /boot/home/develop/sdl/src/joystick/beos/SDL_bejoystick.cc:29: /boot/develop/headers/be/device/Joystick.h:34: field `name_axis' has incomplete type /boot/develop/headers/be/device/Joystick.h:35: field `name_hat' has incomplete type /boot/develop/headers/be/device/Joystick.h:36: field `name_button' has incomplete type /boot/home/develop/sdl/src/joystick/beos/SDL_bejoystick.cc: In function `int SDL_SYS_JoystickInit()': /boot/home/develop/sdl/src/joystick/beos/SDL_bejoystick.cc:72: call of overloaded `Open(char[32])' is ambiguous /boot/develop/headers/be/device/Joystick.h:46: candidates are: status_t BJoystick::Open(const char *) /boot/develop/headers/be/device/Joystick.h:47: status_t BJoystick::Open(const char *, bool = true) /boot/home/develop/sdl/src/joystick/beos/SDL_bejoystick.cc: In function `int SDL_SYS_JoystickOpen(SDL_Joystick *)': /boot/home/develop/sdl/src/joystick/beos/SDL_bejoystick.cc:113: call of overloaded `Open(char *&)' is ambiguous /boot/develop/headers/be/device/Joystick.h:46: candidates are: status_t BJoystick::Open(const char *) /boot/develop/headers/be/device/Joystick.h:47: status_t BJoystick::Open(const char *, bool = true) make: *** [build/SDL_bejoystick.lo] Error 1 ~/develop/sdl>
Change History (7)
comment:1 by , 16 years ago
comment:4 by , 16 years ago
So does this mean we should undo this change: http://alleg.svn.sourceforge.net/viewvc/alleg/allegro/branches/4.3.10plus/src/beos/bjoyapi.cpp?r1=8101&r2=11119, lines 67 and 72?
comment:5 by , 16 years ago
Yes. The first Open() version (the one without the bool parameter) always enter enhanced mode, so it's just like calling the second version with "true" as second parameter.
comment:6 by , 16 years ago
comment:7 by , 16 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.
The same situation exist in the Allegro library.