-
Notifications
You must be signed in to change notification settings - Fork 93
Open
Description
When cargo build
I get linker errors:
The environment:
Windows 11 64-bit
rustc --version -v
output:
rustc 1.88.0-nightly (d5b4c2e4f 2025-04-02)
binary: rustc
commit-hash: d5b4c2e4f19b6d7037371cdaecc3cc2c701c68df
commit-date: 2025-04-02
host: x86_64-pc-windows-msvc
release: 1.88.0-nightly
LLVM version: 20.1.1
The errors:
= note: libsfml-b3047af5394c6600.rlib(JoystickImpl.obj) : error LNK2019: unresolved external symbol __imp_RegCloseKey referenced in function "class sf::String __cdecl `anonymous namespace'::getDeviceName(unsigned int,struct tagJOYCAPSW)" (?getDeviceName@?A0x1703f1d9@@YA?AVString@sf@@IUtagJOYCAPSW@@@Z)␍
libsfml-b3047af5394c6600.rlib(JoystickImpl.obj) : error LNK2019: unresolved external symbol __imp_RegOpenKeyExW referenced in function "class sf::String __cdecl `anonymous namespace'::getDeviceName(unsigned int,struct tagJOYCAPSW)" (?getDeviceName@?A0x1703f1d9@@YA?AVString@sf@@IUtagJOYCAPSW@@@Z)␍
libsfml-b3047af5394c6600.rlib(JoystickImpl.obj) : error LNK2019: unresolved external symbol __imp_RegQueryValueExW referenced in function "class sf::String __cdecl `anonymous namespace'::getDeviceName(unsigned int,struct tagJOYCAPSW)" (?getDeviceName@?A0x1703f1d9@@YA?AVString@sf@@IUtagJOYCAPSW@@@Z)␍
C:\Users\noctice\dev\rust\ascii-art\target\debug\deps\ascii_art.exe : fatal error LNK1120: 3 unresolved externals␍
Metadata
Metadata
Assignees
Labels
No labels