This failure occurs when trying to build and import <print> as a module.
I'm on Ubuntu 24.04 with GCC 14.1. How do I make it work?
+ g++ -std=c++23 -c -fmodules-ts -xc++-system-header print
+ g++ -std=c++23 -c -fmodules-ts -x c++ Donskoy.cppm -o bin/Donskoy.o
+ g++ -std=c++23 -c -fmodules-ts donskoy.cpp -o bin/Donskoy.All.o
In module imported at donskoy.cpp:3:1:
/usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h: error: failed to
read compiled module: No such file or directory
/usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h: note: compiled
module file is
‘gcm.cache/./usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h.gcm’
The code is:
module; import <print>; module Donskoy; using std::println, std::print;
auto meow() -> void { std::println("Донской кот говорит «мяу»"); }
--
-73 -
*Rud Merriam K5RUD*
/Mystic Lake Software/ <http://mysticlakesoftware.com/>