-
-
Notifications
You must be signed in to change notification settings - Fork 14.4k
Open
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Description
Code
Follow the steps to build https://github.com/ldesgoui/discord_game_sdk
This can also happen when directly linking Discord GameSDK libraries by bindgen separately.Current output
error: linking with `link.exe` failed: exit code: 1169
|
= note: "C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.40.33807\\bin\\HostX64\\x64\\link.exe" "/NOLOGO" .. (a lot of libraries)
= note: libstd-af7a289140bfd09b.rlib(std-af7a289140bfd09b.std.9b8e320a6364d5d1-cgu.0.rcgu.o) : error LNK2005: rust_eh_personality already defined in discord_game_sdk.lib(discord_game_sdk.dll)
D:\..\discord_game_sdk\target\debug\deps\discord_game_sdk_sys-7c33338da05ee15f.exe : fatal error LNK1169: one or more multiply defined symbols foundDesired output
Compile and build successfullyRationale and extra context
No response
Other cases
No response
Rust Version
rustc 1.79.0 (129f3b996 2024-06-10)
binary: rustc
commit-hash: 129f3b9964af4d4a709d1383930ade12dfe7c081
commit-date: 2024-06-10
host: x86_64-pc-windows-msvc
release: 1.79.0
LLVM version: 18.1.7Anything else?
No response
Metadata
Metadata
Assignees
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.