On Mon, 21 Dec 2020, 12:07 Patrick Kox, <patrick.kox@xxxxxxxxxxxxxxxx> wrote: > Hi all, > n00b here. > > I'm trying to compile the examples used by the book Beginning C++20 (by > Horton and Van Weert) but the "import <iostream>;" part gives me > errors. > > I've done some searching, and found out that I need a non-default > version of gcc (10 or 11) with support for Modules. > > I've installed gcc-11 as indicated on the Wiki page > (https://gcc.gnu.org/wiki/cxx-modules) and the example code there works > fine. > I'll reply to your main question when I have more time, but for now I'll just point out that the modules support has been merged to the development trunk now (the 'master' branch in git). So you don't need to use the cxx-modules branch. > >