Jimbly / SDL

libGlov fork of SDL from automated SDL HG mirror.
Other
4 stars 1 forks source link

gcc linking error #3

Closed electronstudio closed 5 years ago

electronstudio commented 5 years ago

LTLINK build/libSDL2main.la libtool: link: warning: undefined symbols not allowed in x86_64-w64-mingw32 shared libraries LTLINK build/libSDL2_test.la libtool: link: warning: undefined symbols not allowed in x86_64-w64-mingw32 shared libraries LTLINK build/libSDL2.la

Warning: Linking the shared library build/libSDL2.la against the non-libtool objects build/version.o is not portable! /usr/local/Cellar/mingw-w64/5.0.4_1/toolchain-x86_64/bin/x86_64-w64-mingw32-ld: build/.libs/SDL_windowswindow.o: in function SDL_HelperWindowProc': /Volumes/Home/rich/SDL/src/video/windows/SDL_windowswindow.c:814: undefined reference toRAWINPUT_WindowProc' collect2: error: ld returned 1 exit status make: *** [build/libSDL2.la] Error 1`

electronstudio commented 5 years ago

I think there needs to be a

define SDL_JOYSTICK_RAWINPUT 1

inserted into SDL_config.h

electronstudio commented 5 years ago

I fixed some more warnings in SDL_rawinputjoystick.c (again, please check i didnt mess anything up) and yay, now it compiles and links!

However, it ought to compile even if rawinput is not selected, right?. And there should be a way of using the configure script to select if you want rawinput or not I guess?