Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using MSVC debug-builds fail due to MDd linkage #59

Open
psyinf opened this issue Aug 15, 2023 · 2 comments
Open

Using MSVC debug-builds fail due to MDd linkage #59

psyinf opened this issue Aug 15, 2023 · 2 comments

Comments

@psyinf
Copy link

psyinf commented Aug 15, 2023

Building the MSVC debug targets currently fails due to unsupported mix of debug runtime and 'fsanitize=address' option
error : invalid argument '-MDd' not allowed with '-fsanitize=address' [clang-diagnostic-error]
note: AddressSanitizer doesn't support linking with debug runtime libraries yet
Error while processing E:\develop\projects\ad_astra\src\sample_library\sample_library.cpp.

@Bentebent
Copy link

I am struggling with this as well and I can't figure out why. According to Microsoft ASAN support seems to be fully enabled for /MDd reading here: https://devblogs.microsoft.com/cppblog/msvc-address-sanitizer-one-dll-for-all-runtime-configurations/. Has anyone had success solving this issue?

@christiandaley
Copy link

I just encountered this error as well while trying to build my newly created project for the first time. Will post an update if I figure out a workaround.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants