Temporary header file '/tmp/AvvY1Ivwwt/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/dart/optimizer/nlopt/NloptSolver.hpp" #include "/usr/include/dart/optimizer/nlopt/nlopt.hpp" // add namespaces namespace dart{typedef int tmp_add_type_1;} dart::tmp_add_type_1 tmp_add_func_1(){return 0;}; namespace dart{namespace optimizer{typedef int tmp_add_type_2;}} dart::optimizer::tmp_add_type_2 tmp_add_func_2(){return 0;}; namespace Eigen{typedef int tmp_add_type_3;} Eigen::tmp_add_type_3 tmp_add_func_3(){return 0;}; namespace Eigen{namespace Architecture{typedef int tmp_add_type_4;}} Eigen::Architecture::tmp_add_type_4 tmp_add_func_4(){return 0;}; namespace Eigen{namespace indexing{typedef int tmp_add_type_5;}} Eigen::indexing::tmp_add_type_5 tmp_add_func_5(){return 0;}; namespace Eigen{namespace internal{typedef int tmp_add_type_6;}} Eigen::internal::tmp_add_type_6 tmp_add_func_6(){return 0;}; namespace Eigen{namespace numext{typedef int tmp_add_type_7;}} Eigen::numext::tmp_add_type_7 tmp_add_func_7(){return 0;}; namespace Eigen{namespace placeholders{typedef int tmp_add_type_8;}} Eigen::placeholders::tmp_add_type_8 tmp_add_func_8(){return 0;}; namespace Eigen{namespace symbolic{typedef int tmp_add_type_9;}} Eigen::symbolic::tmp_add_type_9 tmp_add_func_9(){return 0;}; namespace Eigen{namespace bfloat16_impl{typedef int tmp_add_type_10;}} Eigen::bfloat16_impl::tmp_add_type_10 tmp_add_func_10(){return 0;}; namespace Eigen{namespace half_impl{typedef int tmp_add_type_11;}} Eigen::half_impl::tmp_add_type_11 tmp_add_func_11(){return 0;}; namespace Eigen{namespace internal{namespace std_fallback{typedef int tmp_add_type_12;}}} Eigen::internal::std_fallback::tmp_add_type_12 tmp_add_func_12(){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/AvvY1Ivwwt/dump1.h" -I/usr/include/dart/optimizer/nlopt -I/usr/include/eigen3 -I/usr/include/eigen3/Eigen/src/Core/arch/HIP/hcc In file included from /tmp/AvvY1Ivwwt/dump1.h:12: /usr/include/dart/optimizer/nlopt/NloptSolver.hpp:113:53: error: ‘nlopt’ has not been declared 113 | NloptSolver(const Solver::Properties& properties, nlopt::algorithm alg); | ^~~~~ /usr/include/dart/optimizer/nlopt/NloptSolver.hpp:113:70: error: expected ‘,’ or ‘...’ before ‘alg’ 113 | NloptSolver(const Solver::Properties& properties, nlopt::algorithm alg); | ^~~ /usr/include/dart/optimizer/nlopt/NloptSolver.hpp:122:49: error: ‘nlopt’ has not been declared 122 | NloptSolver(std::shared_ptr problem, nlopt::algorithm alg); | ^~~~~ /usr/include/dart/optimizer/nlopt/NloptSolver.hpp:122:66: error: expected ‘,’ or ‘...’ before ‘alg’ 122 | NloptSolver(std::shared_ptr problem, nlopt::algorithm alg); | ^~~ /usr/include/dart/optimizer/nlopt/NloptSolver.hpp:150:21: error: ‘nlopt’ has not been declared 150 | void setAlgorithm(nlopt::algorithm alg); | ^~~~~ /usr/include/dart/optimizer/nlopt/NloptSolver.hpp:150:38: error: expected ‘,’ or ‘...’ before ‘alg’ 150 | void setAlgorithm(nlopt::algorithm alg); | ^~~ /usr/include/dart/optimizer/nlopt/NloptSolver.hpp:157:3: error: ‘nlopt’ does not name a type 157 | nlopt::algorithm getAlgorithm() const; | ^~~~~ /usr/include/dart/optimizer/nlopt/NloptSolver.hpp:166:10: error: ‘nlopt’ does not name a type 166 | static nlopt::algorithm convertAlgorithm(Algorithm algorithm); | ^~~~~ /usr/include/dart/optimizer/nlopt/NloptSolver.hpp:169:37: error: ‘nlopt’ has not been declared 169 | static Algorithm convertAlgorithm(nlopt::algorithm algorithm); | ^~~~~ /usr/include/dart/optimizer/nlopt/NloptSolver.hpp:169:54: error: expected ‘,’ or ‘...’ before ‘algorithm’ 169 | static Algorithm convertAlgorithm(nlopt::algorithm algorithm); | ^~~~~~~~~ /usr/include/dart/optimizer/nlopt/NloptSolver.hpp:188:19: error: ‘nlopt’ was not declared in this scope 188 | std::unique_ptr mOpt; | ^~~~~ /usr/include/dart/optimizer/nlopt/NloptSolver.hpp:188:29: error: template argument 1 is invalid 188 | std::unique_ptr mOpt; | ^ /usr/include/dart/optimizer/nlopt/NloptSolver.hpp:188:29: error: template argument 2 is invalid /usr/include/dart/optimizer/nlopt/NloptSolver.hpp:191:3: error: ‘nlopt’ does not name a type 191 | nlopt::algorithm mAlg; | ^~~~~