This is my first time using this forum, so I've probably formatted something horribly wrong.
I'm trying to set up SFML 3 with static libraries in VS 2022, and keep getting 5 unresolved symbols in the window libraries no matter what I do. The code I have is just for the window with the green dot from the official "SFML and Visual Studio" tutorial.
This is the whole output:
Build started at 10:05 AM...
1>------ Build started: Project: ForReal, Configuration: Debug x64 ------
1>main.cpp
1>sfml-window-s-d.lib(WglContext.obj) : error LNK2001: unresolved external symbol __imp_wglCreateContext
1>sfml-window-s-d.lib(WglContext.obj) : error LNK2001: unresolved external symbol __imp_wglDeleteContext
1>sfml-window-s-d.lib(WglContext.obj) : error LNK2001: unresolved external symbol __imp_wglGetProcAddress
1>sfml-window-s-d.lib(WglContext.obj) : error LNK2001: unresolved external symbol __imp_wglMakeCurrent
1>sfml-window-s-d.lib(WglContext.obj) : error LNK2001: unresolved external symbol __imp_wglShareLists
1>C:\Users\aarin\source\repos\ForReal\x64\Debug\ForReal.exe : fatal error LNK1120: 5 unresolved externals
1>Done building project "ForReal.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
========== Build completed at 10:05 AM and took 02.255 seconds ==========
It's the same five errors in both debug and release (Using the non debug libraries for release).
My additional include and library directories are set to the right places on all configurations, the language is set to C++17, SFML_STATIC is in the Preprocessor Definition, and I'm using the correct set of libraries for debug and release as far as I know.
This is everything I have linked for debug:
kernel32.lib
user32.lib
gdi32.lib
winspool.lib
comdlg32.lib
advapi32.lib
shell32.lib
ole32.lib
oleaut32.lib
uuid.lib
odbc32.lib
odbccp32.lib
sfml-system-s-d.lib
sfml-window-s-d.lib
sfml-graphics-s-d.lib
sfml-audio-s-d.lib
sfml-network-s-d.lib
ws2_32.lib
opengl32.lib
winmm.lib
freetyped.lib
FLACd.lib
oggd.lib
vorbisd.lib
vorbisencd.lib
vorbisfiled.lib
Maybe I've done something super obvious that I just looked over, or linked things in the wrong order or something. Any help would be really appreciated.
In the meantime I'm gonna see if I can get the previous version of SFML to work.