Most of my experience programming is in Linux, so I'm trying to figure out how to setup a decent development environment on Windows.
I'd like to build my game at the command line using cl. When I try to build the 'basic window' example code, I use this command:
cl main.c /LINK .\lib\raylib.lib
This spits out a bunch of warnings and errors. Here's the gist:
/out:main.exe
main.obj
.\lib\raylib.lib
LINK : warning LNK4098: defaultlib 'MSVCRTD' conflicts with use of other libs; use /NODEFAULTLIB:library
raylib.lib(core.obj) : warning LNK4217: locally defined symbol fclose imported in function StorageSaveValue
raylib.lib(text.obj) : warning LNK4049: locally defined symbol fclose imported
raylib.lib(utils.obj) : warning LNK4049: locally defined symbol fclose imported
...
raylib.lib(win32_joystick.obj) : error LNK2019: unresolved external symbol __imp_GetRawInputDeviceInfoA referenced in function supportsXInput
raylib.lib(win32_joystick.obj) : error LNK2019: unresolved external symbol __imp_GetRawInputDeviceList referenced in function supportsXInput
raylib.lib(wgl_context.obj) : error LNK2019: unresolved external symbol __imp_ChoosePixelFormat referenced in function _glfwInitWGL
raylib.lib(wgl_context.obj) : error LNK2019: unresolved external symbol __imp_DescribePixelFormat referenced in function _glfwCreateContextWGL
raylib.lib(wgl_context.obj) : error LNK2019: unresolved external symbol __imp_SetPixelFormat referenced in function _glfwInitWGL
raylib.lib(wgl_context.obj) : error LNK2019: unresolved external symbol __imp_SwapBuffers referenced in function swapBuffersWGL
main.exe : fatal error LNK1120: 140 unresolved externals
Since I'm new to the Windows dev environment, I'm not exactly sure what's going on. It seems like there might be a problem with the crt that raylib was built with not being compatible with mine? Or maybe I'm not linking it correctly?
This is almost certainly something simple that I'm missing. Any direction would be appreciated. Thanks!