rusty icon indicating copy to clipboard operation
rusty copied to clipboard

A LNK2017 error occurred while compiling for windows in debug mode

Open ghaith opened this issue 10 months ago • 1 comments

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

ghaith avatar Feb 13 '25 07:02 ghaith

On the rust side, this might have been the fix: https://github.com/rust-lang/rust/pull/31319

ghaith avatar Feb 13 '25 07:02 ghaith