As per the Changelog, Standard Library Module std is available in VS 2022 17.5 Preview 1. Is there something special that needs to be done as it doesn't seem to be working out of the box. I'm getting the following compile error when importing std:
error C2230: could not find module 'std'
with /experimental:module
The "V143 modules (experimental)" individual feature is installed as well.
Importing the legacy std.core module works without any errors though.
I got it working by creating a new C++ static library project, then I added the std.ixx module file from the modules folder:
C:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Tools\MSVC\14.35.32019\modules
$(VCToolsInstallDir)modules\std.ixx
and then I referenced this new project.
Is there another way?
As per the Changelog, Standard Library Module std is available in VS 2022 17.5 Preview 1. Is there something special that needs to be done as it doesn't seem to be working out of the box. I'm getting the following compile error when importing std:
error C2230: could not find module 'std'with /experimental:module
The "V143 modules (experimental)" individual feature is installed as well.
Importing the legacy std.core module works without any errors though.
I got it working by creating a new C++ static library project, then I added the std.ixx module file from the modules folder:
C:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Tools\MSVC\14.35.32019\modules
$(VCToolsInstallDir)modules\std.ixx
and then I referenced this new project.
Is there another way?