Does g++ support C++ 20 modules?

Hi,

I have tried the following command line:

1
2
3
4
Q:\c++\g++> g++ -std=c++20 -fmodules-ts  -o main.exe  main.cpp  .\new_module.ixx
Q:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe:.\new_module.ixx: file format not recognized; treating as linker script
Q:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe:.\new_module.ixx:2: syntax error
collect2.exe: error: ld returned 1 exit status


the files are main.cpp and new_module.ixx (contains export module ...)

Regards,
Juan
Topic archived. No new replies allowed.