// sample-module-main.cpp: imports the module in sample-module.cppm. // Free sample from 99helpers.com/file-types/cpp // See sample-module.cppm for the build commands; both files must be built // together, the module first. #include import greetings; int main() { std::cout << greetings::hello("modules") << '\n' << "greetings module version " << greetings::version << '\n'; }