unable to compile with VS2022 Preview 7 with std=c++latest using modules and building with clang

Juan Dent 236 Reputation points
2023-05-14T16:26:08.7+00:00

Compiling a static library of modules (extension .ixx) with clang inside VS2022 17.6.0 Preview 7.0 I get this error:

clang-cl : error : no such file or directory: '/scanDependencies'

What is going on?

Developer technologies C++
{count} vote

3 answers

Sort by: Most helpful
  1. Minxin Yu 13,501 Reputation points Microsoft External Staff
    2023-05-15T06:29:55.2266667+00:00

    Hi, @Juan Dent

    From the report: clang-cl’ not support C++ 20 modules.
    I didn't find information about clang supporting module in Visual Studio release notes.

    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.


  2. Thomas Lyons 0 Reputation points
    2023-08-04T14:56:15.1733333+00:00

    I upgraded to the release candidate of Clang 17.0.0. Still getting this error in Visual Studio. I make no use of modules. This has completely broken clang in Visual Studio 2022 for me.


  3. l t 0 Reputation points
    2024-01-04T20:26:58.97+00:00

    same here, i just cannot understand that. I reported this as issue at the microsoft support (issue) but apparently its low priority.

    However the error changed, its now just "Module file not found". You can add every file manually via the command line i guess but apparently that requires multiple build steps etc.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.