Temporary header file '/tmp/aR6sFPffHi/dump1.h' with the following content will be compiled to create GCC translation unit dump: // add defines #define __STDC_VERSION__ 201710L #define _TIME_BITS 64 #define _FILE_OFFSET_BITS 64 #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/mrpt/vision-lgpl/include/mrpt/vision/bundle_adjustment.h" // add namespaces namespace cv{typedef int tmp_add_type_1;} cv::tmp_add_type_1 tmp_add_func_1(){return 0;}; namespace Eigen{typedef int tmp_add_type_2;} Eigen::tmp_add_type_2 tmp_add_func_2(){return 0;}; namespace mexplus{typedef int tmp_add_type_3;} mexplus::tmp_add_type_3 tmp_add_func_3(){return 0;}; namespace mrpt{typedef int tmp_add_type_4;} mrpt::tmp_add_type_4 tmp_add_func_4(){return 0;}; namespace mrpt{namespace config{typedef int tmp_add_type_5;}} mrpt::config::tmp_add_type_5 tmp_add_func_5(){return 0;}; namespace mrpt{namespace containers{typedef int tmp_add_type_6;}} mrpt::containers::tmp_add_type_6 tmp_add_func_6(){return 0;}; namespace mrpt{namespace containers{namespace internal{typedef int tmp_add_type_7;}}} mrpt::containers::internal::tmp_add_type_7 tmp_add_func_7(){return 0;}; namespace mrpt{namespace img{typedef int tmp_add_type_8;}} mrpt::img::tmp_add_type_8 tmp_add_func_8(){return 0;}; namespace mrpt{namespace internal{typedef int tmp_add_type_9;}} mrpt::internal::tmp_add_type_9 tmp_add_func_9(){return 0;}; namespace mrpt{namespace io{typedef int tmp_add_type_10;}} mrpt::io::tmp_add_type_10 tmp_add_func_10(){return 0;}; namespace mrpt{namespace literals{typedef int tmp_add_type_11;}} mrpt::literals::tmp_add_type_11 tmp_add_func_11(){return 0;}; namespace mrpt{namespace math{typedef int tmp_add_type_12;}} mrpt::math::tmp_add_type_12 tmp_add_func_12(){return 0;}; namespace mrpt{namespace math{namespace internal{typedef int tmp_add_type_13;}}} mrpt::math::internal::tmp_add_type_13 tmp_add_func_13(){return 0;}; namespace mrpt{namespace poses{typedef int tmp_add_type_14;}} mrpt::poses::tmp_add_type_14 tmp_add_func_14(){return 0;}; namespace mrpt{namespace rtti{typedef int tmp_add_type_15;}} mrpt::rtti::tmp_add_type_15 tmp_add_func_15(){return 0;}; namespace mrpt{namespace rtti{namespace internal{typedef int tmp_add_type_16;}}} mrpt::rtti::internal::tmp_add_type_16 tmp_add_func_16(){return 0;}; namespace mrpt{namespace serialization{typedef int tmp_add_type_17;}} mrpt::serialization::tmp_add_type_17 tmp_add_func_17(){return 0;}; namespace mrpt{namespace system{typedef int tmp_add_type_18;}} mrpt::system::tmp_add_type_18 tmp_add_func_18(){return 0;}; namespace mrpt{namespace tfest{typedef int tmp_add_type_19;}} mrpt::tfest::tmp_add_type_19 tmp_add_func_19(){return 0;}; namespace mrpt{namespace typemeta{typedef int tmp_add_type_20;}} mrpt::typemeta::tmp_add_type_20 tmp_add_func_20(){return 0;}; namespace mrpt{namespace typemeta{namespace detail{typedef int tmp_add_type_21;}}} mrpt::typemeta::detail::tmp_add_type_21 tmp_add_func_21(){return 0;}; namespace mrpt{namespace typemeta{namespace internal{typedef int tmp_add_type_22;}}} mrpt::typemeta::internal::tmp_add_type_22 tmp_add_func_22(){return 0;}; namespace mrpt{namespace vision{typedef int tmp_add_type_23;}} mrpt::vision::tmp_add_type_23 tmp_add_func_23(){return 0;}; namespace spimpl{typedef int tmp_add_type_24;} spimpl::tmp_add_type_24 tmp_add_func_24(){return 0;}; namespace spimpl{namespace details{typedef int tmp_add_type_25;}} spimpl::details::tmp_add_type_25 tmp_add_func_25(){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/aR6sFPffHi/dump1.h" -I/usr/include/mrpt/vision/include -I/usr/include/mrpt/typemeta/include -I/usr/include/mrpt/tfest/include -I/usr/include/mrpt/system/include -I/usr/include/mrpt/serialization/include -I/usr/include/mrpt/rtti/include -I/usr/include/mrpt/poses/include -I/usr/include/mrpt/math/include -I/usr/include/mrpt/img/include -I/usr/include/mrpt/core/include -I/usr/include/mrpt/containers/include -I/usr/include/mrpt/config/include