Temporary header file '/tmp/PvBMbfNyS7/dump1.h' with the following content will be compiled to create GCC translation unit dump: // add defines #define __STDC_VERSION__ 201710L #define _GXX_NULLPTR_T #define CLUTTER_ENABLE_COMPOSITOR_API 1 #define _REGEX_NELTS(n) #define _Atomic #define PACKED #define getaddrinfo_a(a,b,c,d) // add includes #include "/usr/include/boost/trompeloeil.hpp" #include "/usr/include/catch2/trompeloeil.hpp" #include "/usr/include/criterion/trompeloeil.hpp" #include "/usr/include/crpcut/trompeloeil.hpp" #include "/usr/include/cxxtest/trompeloeil.hpp" #include "/usr/include/doctest/trompeloeil.hpp" #include "/usr/include/gtest/trompeloeil.hpp" #include "/usr/include/trompeloeil.hpp" // add namespaces namespace trompeloeil{typedef int tmp_add_type_1;} trompeloeil::tmp_add_type_1 tmp_add_func_1(){return 0;}; namespace trompeloeil{namespace lambdas{typedef int tmp_add_type_2;}} trompeloeil::lambdas::tmp_add_type_2 tmp_add_func_2(){return 0;}; // add classes _G_fpos64_t* tmp_add_class_0; _G_fpos_t* tmp_add_class_1; _IO_cookie_io_functions_t* tmp_add_class_2; The GCC parameters: gcc -fdump-lang-raw -fkeep-inline-functions -c -x c++ -fpermissive -w "/tmp/PvBMbfNyS7/dump1.h" In file included from /tmp/PvBMbfNyS7/dump1.h:12: /usr/include/boost/trompeloeil.hpp:19:2: error: #error " must be included before " 19 | #error " must be included before " | ^~~~~ In file included from /tmp/PvBMbfNyS7/dump1.h:13: /usr/include/catch2/trompeloeil.hpp:21:2: error: #error "Catch2 macros must be defined before including " 21 | #error "Catch2 macros must be defined before including " | ^~~~~ In file included from /tmp/PvBMbfNyS7/dump1.h:14: /usr/include/criterion/trompeloeil.hpp:20:2: error: #error " must be included before " 20 | #error " must be included before " | ^~~~~ In file included from /tmp/PvBMbfNyS7/dump1.h:15: /usr/include/crpcut/trompeloeil.hpp:19:2: error: #error " must be included before " 19 | #error " must be included before " | ^~~~~ In file included from /tmp/PvBMbfNyS7/dump1.h:16: /usr/include/cxxtest/trompeloeil.hpp:20:2: error: #error " must be included before " 20 | #error " must be included before " | ^~~~~ In file included from /tmp/PvBMbfNyS7/dump1.h:17: /usr/include/doctest/trompeloeil.hpp:19:2: error: #error " must be included before " 19 | #error " must be included before " | ^~~~~ In file included from /tmp/PvBMbfNyS7/dump1.h:18: /usr/include/gtest/trompeloeil.hpp:19:2: error: #error " must be included before " 19 | #error " must be included before " | ^~~~~ /usr/include/boost/trompeloeil.hpp: In static member function ‘static void trompeloeil::reporter::send(trompeloeil::severity, const char*, long unsigned int, const char*) [with T = trompeloeil::specialized]’: /usr/include/boost/trompeloeil.hpp:37:7: error: ‘BOOST_FAIL’ was not declared in this scope 37 | BOOST_FAIL(text); | ^~~~~~~~~~ /usr/include/boost/trompeloeil.hpp:39:7: error: ‘BOOST_ERROR’ was not declared in this scope 39 | BOOST_ERROR(text); | ^~~~~~~~~~~ /usr/include/catch2/trompeloeil.hpp: At global scope: /usr/include/catch2/trompeloeil.hpp:29:15: error: redefinition of ‘static void trompeloeil::reporter::send(trompeloeil::severity, const char*, long unsigned int, const char*) [with T = trompeloeil::specialized]’ 29 | inline void reporter::send( | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/boost/trompeloeil.hpp:27:15: note: ‘static void trompeloeil::reporter::send(trompeloeil::severity, const char*, long unsigned int, const char*) [with T = trompeloeil::specialized]’ previously declared here 27 | inline void reporter::send( | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/catch2/trompeloeil.hpp: In static member function ‘static void trompeloeil::reporter::sendOk(const char*) [with T = trompeloeil::specialized]’: /usr/include/catch2/trompeloeil.hpp:66:7: error: ‘REQUIRE’ was not declared in this scope 66 | REQUIRE(trompeloeil_mock_calls_done_correctly != 0); | ^~~~~~~ /usr/include/criterion/trompeloeil.hpp: At global scope: /usr/include/criterion/trompeloeil.hpp:28:15: error: redefinition of ‘static void trompeloeil::reporter::send(trompeloeil::severity, const char*, long unsigned int, const char*) [with T = trompeloeil::specialized]’ 28 | inline void reporter::send( | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/boost/trompeloeil.hpp:27:15: note: ‘static void trompeloeil::reporter::send(trompeloeil::severity, const char*, long unsigned int, const char*) [with T = trompeloeil::specialized]’ previously declared here 27 | inline void reporter::send( | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/criterion/trompeloeil.hpp:52:15: error: redefinition of ‘static void trompeloeil::reporter::sendOk(const char*) [with T = trompeloeil::specialized]’ 52 | inline void reporter::sendOk( | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/catch2/trompeloeil.hpp:60:15: note: ‘static void trompeloeil::reporter::sendOk(const char*) [with T = trompeloeil::specialized]’ previously declared here 60 | inline void reporter::sendOk( | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/crpcut/trompeloeil.hpp:27:15: error: redefinition of ‘static void trompeloeil::reporter::send(trompeloeil::severity, const char*, long unsigned int, const char*) [with T = trompeloeil::specialized]’ 27 | inline void reporter::send( | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/boost/trompeloeil.hpp:27:15: note: ‘static void trompeloeil::reporter::send(trompeloeil::severity, const char*, long unsigned int, const char*) [with T = trompeloeil::specialized]’ previously declared here 27 | inline void reporter::send( | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/cxxtest/trompeloeil.hpp:31:15: error: redefinition of ‘static void trompeloeil::reporter::send(trompeloeil::severity, const char*, long unsigned int, const char*) [with T = trompeloeil::specialized]’ 31 | inline void reporter::send( | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/boost/trompeloeil.hpp:27:15: note: ‘static void trompeloeil::reporter::send(trompeloeil::severity, const char*, long unsigned int, const char*) [with T = trompeloeil::specialized]’ previously declared here 27 | inline void reporter::send( | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/doctest/trompeloeil.hpp:27:15: error: redefinition of ‘static void trompeloeil::reporter::send(trompeloeil::severity, const char*, long unsigned int, const char*) [with T = trompeloeil::specialized]’ 27 | inline void reporter::send( | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/boost/trompeloeil.hpp:27:15: note: ‘static void trompeloeil::reporter::send(trompeloeil::severity, const char*, long unsigned int, const char*) [with T = trompeloeil::specialized]’ previously declared here 27 | inline void reporter::send( | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/doctest/trompeloeil.hpp:46:15: error: redefinition of ‘static void trompeloeil::reporter::sendOk(const char*) [with T = trompeloeil::specialized]’ 46 | inline void reporter::sendOk( | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/catch2/trompeloeil.hpp:60:15: note: ‘static void trompeloeil::reporter::sendOk(const char*) [with T = trompeloeil::specialized]’ previously declared here 60 | inline void reporter::sendOk( | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/gtest/trompeloeil.hpp:27:15: error: redefinition of ‘static void trompeloeil::reporter::send(trompeloeil::severity, const char*, long unsigned int, const char*) [with T = trompeloeil::specialized]’ 27 | inline void reporter::send( | ^~~~~~~~~~~~~~~~~~~~~ /usr/include/boost/trompeloeil.hpp:27:15: note: ‘static void trompeloeil::reporter::send(trompeloeil::severity, const char*, long unsigned int, const char*) [with T = trompeloeil::specialized]’ previously declared here 27 | inline void reporter::send( | ^~~~~~~~~~~~~~~~~~~~~