On Fri, 5 May 2023, 06:09 Wilhelm Meier wrote: > > Additionally, if I have some modules in different directories but with > same file-names, the files in gcm.cache resemble that directory > structure, but the .o files are overridden. > This is exactly the same as doing: g++ -c dir1/foo.cc g++ -c dir2/foo.cc So not anything specific to modules. If you don't want foo.o to be overridden, you can use -o to write to dir1/foo.o or some other location.