g++ 编译module失败

https://gcc.gnu.org/wiki/cxx-modules

hello.cc

module;
#include <iostream>
#include <string_view>
export module hello;
export void greeter (std::string_view const &name)
{
  std::cout << "Hello " << name << "!
";
}
main.cc
import hello;
int main (void)
{
  greeter ("world");
  return 0;
}
g++ -fmodules-ts hello.cc main.cc
 
原文地址:https://www.cnblogs.com/xpylovely/p/15137234.html