clang++13.0.1 Module std_config Problem



  • Kennt von Euch jemand eine Lösung für dieses Problem?
    Das Problem importiert über zwei Wege denselben std Header.

    allocator_test.cc:13:1: fatal error: module 'std_config' is defined in both '/home/x/projects/c++/matrix/pcm.cache/3Q1VFALGL7495/std_config-2FRLOTTTWC8AB.pcm' and '/home/x/projects/c++/matrix/pcm.cache/28LE54LT49FD8/std_config-2FRLOTTTWC8AB.pcm'
    import demangle;
    

    P.S. Mit g++ 11.2.0 gibt es kein Problem mit diesem Code.


  • Mod

    Hast du schon versucht, die precompiled Headers zu löschen und neu zu bauen?



  • Ich sehe gerade, dass ich da Informationen vergessen habe. Ich verwende für das Projekt die libc++, so dass die Header nicht als Module gebaut werden müssen, die sind bereits im Compiler vorhanden.

    Der clang++ Aufruf ist

    clang++-13 -std=c++20 -O3 -pedantic -Weverything -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-pre-c++17-compat -Wno-c++20-compat -fmodules -fbuiltin-module-map -fimplicit-module-maps -fprebuilt-module-path=pcm.cache -fmodules-cache-path=pcm.cache -DTEST -stdlib=libc++ -c allocator_test.cc -o objs/allocator_test.o
    

    Ja, ich weiß viel Lametta, aber ich will sehen, ob clang++ noch mehr Probleme findet als g++.


Anmelden zum Antworten