On Tue, 2 May 2023, 13:03 Wilhelm Meier wrote: > Hi all, > > the following test program > > import std; > int main() {} > > compiled with > > /usr/local/bin/g++ -g -std=c++23 -fconcepts -fmodules-ts -O3 -Wall > -Wextra test400.cc --output test400 > > gives the following errors: > > std: error: failed to read compiled module: No such file or directory > std: note: compiled module file is 'gcm.cache/std.gcm' > std: note: imports must be built before being imported > std: fatal error: returning to the gate for a mechanical issue > > The standard library module std should be available, but obviously is not. > Right. Just because you used -std=c++23 doesn't mean the compiler actually supports all of C++23. It's still a work in progress. > Aside from header units: is the a way to create the std module by my own? > Not very easily. > Will gcc be shipped with the module std? > Eventually, yes, we will provide a std.cc module definition file, which you will be able to compile and then import.