rusty
rusty copied to clipboard
A LNK2017 error occurred while compiling for windows in debug mode
Discussed in https://github.com/PLC-lang/rusty/discussions/1409
Originally posted by chen4s666 February 11, 2025
Hello,
When compiling with -g --linker=clang --target=x86_64-pc-windows-msvc,
I get an error LNK2017: 'ADDR32' relocation to '.debug_line_str' invalid without /LARGEADDRESSAWARE:NO
What shall I do.
I also noticed that the Rust compiler had a similar problem. https://github.com/rust-lang/rust/issues/29413
On the rust side, this might have been the fix: https://github.com/rust-lang/rust/pull/31319