https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98885
--- Comment #8 from Pilar Latiesa <pilarlatiesa at gmail dot com> --- (In reply to Nathan Sidwell from comment #7) That works. Thanks so much. When there are several partitions involved it is not entirely clear to me what declarations are first seen by the compiler compared with the legacy textual inclusion model, so I assume that the rule would be to annotate every forward declaration of an exported entity with 'export'.