Can't build visual studio 2022 project with address sanitizer

TwistedBlister 0 Reputation points

I am trying to build a project in VS 2022 with the address sanitizer enabled, but I'm getting this error: module (key=0xbfda) information unavailable. This happens when it is building std.ixx. I have disabled all the incompatible features with asan, and I checked "No" for "scan sources for module dependencies." Even though I did that, it still scans the sources for module dependencies, which I suspect might be a problem since otherwise it would not build std.ixx which is giving me the error.

If it means anything, I had to reinstall VS on the D drive a while ago, and the packages folder was moved to a different location.

A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,450 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Minxin Yu 9,436 Reputation points Microsoft Vendor


    There is an option properties->C++-> All option: Build ISO C++23 standard module: No.

    enter image description here

    This issue has not been fixed yet. You can follow the issue on Developer Community.

    Best regards,

    Minxin Yu

    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.