sdl2_frt/src/joystick
Sam Lantinga 8b0660b25a Fixed bug 4918 - SDL failed to build due to error LNK2019: unresolved external symbol memset referenced in function SDL_SetJoystickIDForPlayerIndex with MSVC x64 on Windows
LinGao

We build SDL with Visual studio 2017 compiler on Windows Server 2016, but it failed to build due to error LNK2019: unresolved external symbol memset referenced in function SDL_SetJoystickIDForPlayerIndex with MSVC x64 on Windows on latest default branch. And we found that it can be first reproduced on 0fff06175109 changeset. Could you please help have a look about this issue? Thanks in advance!

Steps to Reproduce:
1.hg clone https://hg.libsdl.org/SDL D:\SDL\src
2.Open a VS 2017 x64 command prompt as admin and browse to D:\SDL
3.msbuild /p:Configuration=Release /p:Platform=x64 /p:WindowsTargetPlatformVersion=10.0.17134.0 VisualC\SDL.sln /t:Rebuild

Actual result:
 Creating library D:\SDL\src\VisualC\x64\Release\SDL2.lib and object D:\SDL\src\VisualC\x64\Release\SDL2.exp
SDL_joystick.obj : error LNK2019: unresolved external symbol memset referenced in function SDL_SetJoystickIDForPlayerIndex [D:\SDL\src\VisualC\SDL\SDL.vcxproj]
D:\SDL\src\VisualC\x64\Release\SDL2.dll : fatal error LNK1120: 1 unresolved externals [D:\SDL\src\VisualC\SDL\SDL.vcxproj]
Done Building Project "D:\SDL\src\VisualC\SDL\SDL.vcxproj" (Rebuild target(s)) -- FAILED.
2019-12-30 13:18:57 -08:00
..
android Automatically assign player indexes to game controllers, and allow changing the player index for game controllers and joysticks. 2019-12-20 20:12:03 -08:00
bsd Automatically assign player indexes to game controllers, and allow changing the player index for game controllers and joysticks. 2019-12-20 20:12:03 -08:00
darwin Automatically assign player indexes to game controllers, and allow changing the player index for game controllers and joysticks. 2019-12-20 20:12:03 -08:00
dummy Automatically assign player indexes to game controllers, and allow changing the player index for game controllers and joysticks. 2019-12-20 20:12:03 -08:00
emscripten Automatically assign player indexes to game controllers, and allow changing the player index for game controllers and joysticks. 2019-12-20 20:12:03 -08:00
haiku Automatically assign player indexes to game controllers, and allow changing the player index for game controllers and joysticks. 2019-12-20 20:12:03 -08:00
hidapi Added support for the Nintendo GameCube adapter, tested on Steam Link hardware 2019-12-30 09:44:32 -08:00
iphoneos Automatically assign player indexes to game controllers, and allow changing the player index for game controllers and joysticks. 2019-12-20 20:12:03 -08:00
linux Automatically assign player indexes to game controllers, and allow changing the player index for game controllers and joysticks. 2019-12-20 20:12:03 -08:00
psp Updated copyright for 2019 2019-01-04 22:01:14 -08:00
steam Updated copyright for 2019 2019-01-04 22:01:14 -08:00
windows Fixed windows build 2019-12-21 22:33:21 -08:00
controller_type.h Added support for the Hori Dragon Quest Slime Controller 2019-12-20 21:40:28 -08:00
SDL_gamecontroller.c Automatically assign player indexes to game controllers, and allow changing the player index for game controllers and joysticks. 2019-12-20 20:12:03 -08:00
SDL_gamecontrollerdb.h Added support for the Nintendo GameCube Controller, using the Mayflash GameCube adapter. 2019-12-19 16:14:22 -08:00
SDL_joystick_c.h Automatically assign player indexes to game controllers, and allow changing the player index for game controllers and joysticks. 2019-12-20 20:12:03 -08:00
SDL_joystick.c Fixed bug 4918 - SDL failed to build due to error LNK2019: unresolved external symbol memset referenced in function SDL_SetJoystickIDForPlayerIndex with MSVC x64 on Windows 2019-12-30 13:18:57 -08:00
SDL_sysjoystick.h Automatically assign player indexes to game controllers, and allow changing the player index for game controllers and joysticks. 2019-12-20 20:12:03 -08:00
sort_controllers.py Revert SDL_gamecontrollerdb.h and sort_controllers.py from bug 4024 2019-01-21 20:49:08 +01:00