Temporary header file '/tmp/jkyRiJeHao/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/lcm/eventlog.h" #include "/usr/include/lcm/lcm-cpp-impl.hpp" #include "/usr/include/lcm/lcm-cpp.hpp" #include "/usr/include/lcm/lcm.h" #include "/usr/include/lcm/lcm_coretypes.h" // add namespaces namespace lcm{typedef int tmp_add_type_1;} lcm::tmp_add_type_1 tmp_add_func_1(){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; _lcm_eventlog_event_t* tmp_add_class_3; _lcm_eventlog_t* tmp_add_class_4; _lcm_field_t* tmp_add_class_5; _lcm_recv_buf_t* tmp_add_class_6; _lcm_type_info_t* tmp_add_class_7; double_uint64* tmp_add_class_8; float_uint32* tmp_add_class_9; The GCC parameters: gcc -fdump-lang-raw -fkeep-inline-functions -c -x c++ -fpermissive -w "/tmp/jkyRiJeHao/dump1.h" In file included from /tmp/jkyRiJeHao/dump1.h:13: /usr/include/lcm/lcm-cpp-impl.hpp:4:2: error: #error "Don't include this file" 4 | #error "Don't include this file" | ^~~~~ /usr/include/lcm/lcm-cpp-impl.hpp:10:1: error: ‘Subscription’ has not been declared 10 | Subscription::setQueueCapacity(int num_messages) | ^~~~~~~~~~~~ /usr/include/lcm/lcm-cpp-impl.hpp: In function ‘int setQueueCapacity(int)’: /usr/include/lcm/lcm-cpp-impl.hpp:12:48: error: ‘c_subs’ was not declared in this scope 12 | return lcm_subscription_set_queue_capacity(c_subs, num_messages); | ^~~~~~ /usr/include/lcm/lcm-cpp-impl.hpp:12:12: error: ‘lcm_subscription_set_queue_capacity’ was not declared in this scope 12 | return lcm_subscription_set_queue_capacity(c_subs, num_messages); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/lcm/lcm-cpp-impl.hpp: At global scope: /usr/include/lcm/lcm-cpp-impl.hpp:16:50: error: expected class-name before ‘{’ token 16 | class LCMTypedSubscription : public Subscription { | ^ /usr/include/lcm/lcm-cpp-impl.hpp:20:31: error: ‘ReceiveBuffer’ does not name a type 20 | void (*handler)(const ReceiveBuffer *rbuf, const std::string& channel, | ^~~~~~~~~~~~~ /usr/include/lcm/lcm-cpp-impl.hpp:20:63: error: ‘string’ in namespace ‘std’ does not name a type 20 | void (*handler)(const ReceiveBuffer *rbuf, const std::string& channel, | ^~~~~~ /usr/include/lcm/lcm-cpp-impl.hpp:1:1: note: ‘std::string’ is defined in header ‘’; did you forget to ‘#include ’? +++ |+#include 1 | // DO NOT EVER INCLUDE THIS HEADER FILE YOURSELF /usr/include/lcm/lcm-cpp-impl.hpp:22:35: error: ‘lcm_recv_buf_t’ does not name a type 22 | static void cb_func(const lcm_recv_buf_t *rbuf, const char *channel, | ^~~~~~~~~~~~~~ /usr/include/lcm/lcm-cpp-impl.hpp: In static member function ‘static void LCMTypedSubscription::cb_func(const int*, const char*, void*)’: /usr/include/lcm/lcm-cpp-impl.hpp:28:43: error: request for member ‘data’ in ‘rbuf->’, which is of non-class type ‘const int’ 28 | int status = msg.decode(rbuf->data, 0, rbuf->data_size); | ^~~~ /usr/include/lcm/lcm-cpp-impl.hpp:28:58: error: request for member ‘data_size’ in ‘rbuf->’, which is of non-class type ‘const int’ 28 | int status = msg.decode(rbuf->data, 0, rbuf->data_size); | ^~~~~~~~~ /usr/include/lcm/lcm-cpp-impl.hpp:34:19: error: ‘ReceiveBuffer’ does not name a type 34 | const ReceiveBuffer rb = { | ^~~~~~~~~~~~~ /usr/include/lcm/lcm-cpp-impl.hpp:39:28: error: ‘rb’ was not declared in this scope; did you mean ‘rbuf’? 39 | subs->handler(&rb, channel, &msg, subs->context); | ^~ | rbuf /usr/include/lcm/lcm-cpp-impl.hpp: At global scope: /usr/include/lcm/lcm-cpp-impl.hpp:44:52: error: expected class-name before ‘{’ token 44 | class LCMUntypedSubscription : public Subscription { | ^ /usr/include/lcm/lcm-cpp-impl.hpp:48:31: error: ‘ReceiveBuffer’ does not name a type 48 | void (*handler)(const ReceiveBuffer *rbuf, const std::string& channel, | ^~~~~~~~~~~~~ /usr/include/lcm/lcm-cpp-impl.hpp:48:63: error: ‘string’ in namespace ‘std’ does not name a type 48 | void (*handler)(const ReceiveBuffer *rbuf, const std::string& channel, | ^~~~~~ /usr/include/lcm/lcm-cpp-impl.hpp:48:58: note: ‘std::string’ is defined in header ‘’; did you forget to ‘#include ’? 48 | void (*handler)(const ReceiveBuffer *rbuf, const std::string& channel, | ^~~ /usr/include/lcm/lcm-cpp-impl.hpp:50:35: error: ‘lcm_recv_buf_t’ does not name a type 50 | static void cb_func(const lcm_recv_buf_t *rbuf, const char *channel, | ^~~~~~~~~~~~~~ /usr/include/lcm/lcm-cpp-impl.hpp: In static member function ‘static void LCMUntypedSubscription::cb_func(const int*, const char*, void*)’: /usr/include/lcm/lcm-cpp-impl.hpp:55:19: error: ‘ReceiveBuffer’ does not name a type 55 | const ReceiveBuffer rb = { | ^~~~~~~~~~~~~ /usr/include/lcm/lcm-cpp-impl.hpp:60:28: error: ‘rb’ was not declared in this scope; did you mean ‘rbuf’? 60 | subs->handler(&rb, channel, subs->context); | ^~ | rbuf /usr/include/lcm/lcm-cpp-impl.hpp: At global scope: /usr/include/lcm/lcm-cpp-impl.hpp:65:47: error: expected class-name before ‘{’ token 65 | class LCMMHSubscription : public Subscription { | ^ /usr/include/lcm/lcm-cpp-impl.hpp:69:58: error: ‘ReceiveBuffer’ does not name a type 69 | void (MessageHandlerClass::*handlerMethod)(const ReceiveBuffer* rbuf, const std::string& channel, const MessageType* msg); | ^~~~~~~~~~~~~ /usr/include/lcm/lcm-cpp-impl.hpp:69:90: error: ‘string’ in namespace ‘std’ does not name a type 69 | void (MessageHandlerClass::*handlerMethod)(const ReceiveBuffer* rbuf, const std::string& channel, const MessageType* msg); | ^~~~~~ /usr/include/lcm/lcm-cpp-impl.hpp:69:85: note: ‘std::string’ is defined in header ‘’; did you forget to ‘#include ’? 69 | void (MessageHandlerClass::*handlerMethod)(const ReceiveBuffer* rbuf, const std::string& channel, const MessageType* msg); | ^~~ /usr/include/lcm/lcm-cpp-impl.hpp:70:35: error: ‘lcm_recv_buf_t’ does not name a type 70 | static void cb_func(const lcm_recv_buf_t *rbuf, const char *channel, | ^~~~~~~~~~~~~~ /usr/include/lcm/lcm-cpp-impl.hpp: In static member function ‘static void LCMMHSubscription::cb_func(const int*, const char*, void*)’: /usr/include/lcm/lcm-cpp-impl.hpp:76:43: error: request for member ‘data’ in ‘rbuf->’, which is of non-class type ‘const int’ 76 | int status = msg.decode(rbuf->data, 0, rbuf->data_size); | ^~~~ /usr/include/lcm/lcm-cpp-impl.hpp:76:58: error: request for member ‘data_size’ in ‘rbuf->’, which is of non-class type ‘const int’ 76 | int status = msg.decode(rbuf->data, 0, rbuf->data_size); | ^~~~~~~~~ /usr/include/lcm/lcm-cpp-impl.hpp:82:19: error: ‘ReceiveBuffer’ does not name a type 82 | const ReceiveBuffer rb = { | ^~~~~~~~~~~~~ /usr/include/lcm/lcm-cpp-impl.hpp:87:18: error: ‘string’ is not a member of ‘std’ 87 | std::string chan_str(channel); | ^~~~~~ /usr/include/lcm/lcm-cpp-impl.hpp:87:18: note: ‘std::string’ is defined in header ‘’; did you forget to ‘#include ’? /usr/include/lcm/lcm-cpp-impl.hpp:88:52: error: ‘rb’ was not declared in this scope; did you mean ‘rbuf’? 88 | (subs->handler->*subs->handlerMethod)(&rb, chan_str, &msg); | ^~ | rbuf /usr/include/lcm/lcm-cpp-impl.hpp:88:56: error: ‘chan_str’ was not declared in this scope 88 | (subs->handler->*subs->handlerMethod)(&rb, chan_str, &msg); | ^~~~~~~~ /usr/include/lcm/lcm-cpp-impl.hpp: At global scope: /usr/include/lcm/lcm-cpp-impl.hpp:93:54: error: expected class-name before ‘{’ token 93 | class LCMMHUntypedSubscription : public Subscription { | ^ /usr/include/lcm/lcm-cpp-impl.hpp:97:58: error: ‘ReceiveBuffer’ does not name a type 97 | void (MessageHandlerClass::*handlerMethod)(const ReceiveBuffer* rbuf, const std::string& channel); | ^~~~~~~~~~~~~ /usr/include/lcm/lcm-cpp-impl.hpp:97:90: error: ‘string’ in namespace ‘std’ does not name a type 97 | void (MessageHandlerClass::*handlerMethod)(const ReceiveBuffer* rbuf, const std::string& channel); | ^~~~~~ /usr/include/lcm/lcm-cpp-impl.hpp:97:85: note: ‘std::string’ is defined in header ‘’; did you forget to ‘#include ’? 97 | void (MessageHandlerClass::*handlerMethod)(const ReceiveBuffer* rbuf, const std::string& channel); | ^~~ /usr/include/lcm/lcm-cpp-impl.hpp:98:35: error: ‘lcm_recv_buf_t’ does not name a type 98 | static void cb_func(const lcm_recv_buf_t *rbuf, const char *channel, void *user_data) | ^~~~~~~~~~~~~~ /usr/include/lcm/lcm-cpp-impl.hpp: In static member function ‘static void LCMMHUntypedSubscription::cb_func(const int*, const char*, void*)’: /usr/include/lcm/lcm-cpp-impl.hpp:102:19: error: ‘ReceiveBuffer’ does not name a type 102 | const ReceiveBuffer rb = { | ^~~~~~~~~~~~~ /usr/include/lcm/lcm-cpp-impl.hpp:107:18: error: ‘string’ is not a member of ‘std’ 107 | std::string chan_str(channel); | ^~~~~~ /usr/include/lcm/lcm-cpp-impl.hpp:107:18: note: ‘std::string’ is defined in header ‘’; did you forget to ‘#include ’? /usr/include/lcm/lcm-cpp-impl.hpp:108:52: error: ‘rb’ was not declared in this scope; did you mean ‘rbuf’? 108 | (subs->handler->*subs->handlerMethod)(&rb, chan_str); | ^~ | rbuf /usr/include/lcm/lcm-cpp-impl.hpp:108:56: error: ‘chan_str’ was not declared in this scope 108 | (subs->handler->*subs->handlerMethod)(&rb, chan_str); | ^~~~~~~~ /usr/include/lcm/lcm-cpp-impl.hpp: At global scope: /usr/include/lcm/lcm-cpp-impl.hpp:113:1: error: ‘LCM’ does not name a type 113 | LCM::LCM(std::string lcm_url): | ^~~ /usr/include/lcm/lcm-cpp-impl.hpp:120:1: error: ‘LCM’ does not name a type 120 | LCM::LCM(lcm_t * lcm_in): | ^~~ /usr/include/lcm/lcm-cpp-impl.hpp:127:1: error: ‘LCM’ has not been declared 127 | LCM::good() const | ^~~ /usr/include/lcm/lcm-cpp-impl.hpp:127:13: error: non-member function ‘bool good()’ cannot have cv-qualifier 127 | LCM::good() const | ^~~~~ /usr/include/lcm/lcm-cpp-impl.hpp: In function ‘bool good()’: /usr/include/lcm/lcm-cpp-impl.hpp:129:12: error: invalid use of ‘this’ in non-member function 129 | return this->lcm != NULL; | ^~~~ /usr/include/lcm/lcm-cpp-impl.hpp: At global scope: /usr/include/lcm/lcm-cpp-impl.hpp:133:1: error: ‘LCM’ does not name a type 133 | LCM::~LCM() { | ^~~ /usr/include/lcm/lcm-cpp-impl.hpp:143:1: error: ‘LCM’ has not been declared 143 | LCM::publish(const std::string& channel, const void *data, unsigned int datalen) { | ^~~ /usr/include/lcm/lcm-cpp-impl.hpp:143:25: error: ‘string’ in namespace ‘std’ does not name a type 143 | LCM::publish(const std::string& channel, const void *data, unsigned int datalen) { | ^~~~~~ /usr/include/lcm/lcm-cpp-impl.hpp:143:20: note: ‘std::string’ is defined in header ‘’; did you forget to ‘#include ’? 143 | LCM::publish(const std::string& channel, const void *data, unsigned int datalen) { | ^~~ /usr/include/lcm/lcm-cpp-impl.hpp: In function ‘int publish(const int&, const void*, unsigned int)’: /usr/include/lcm/lcm-cpp-impl.hpp:144:9: error: invalid use of ‘this’ in non-member function 144 | if(!this->lcm) { | ^~~~ /usr/include/lcm/lcm-cpp-impl.hpp:149:24: error: invalid use of ‘this’ in non-member function 149 | return lcm_publish(this->lcm, channel.c_str(), data, datalen); | ^~~~ /usr/include/lcm/lcm-cpp-impl.hpp:149:43: error: request for member ‘c_str’ in ‘channel’, which is of non-class type ‘const int’ 149 | return lcm_publish(this->lcm, channel.c_str(), data, datalen); | ^~~~~ /usr/include/lcm/lcm-cpp-impl.hpp:149:12: error: ‘lcm_publish’ was not declared in this scope; did you mean ‘publish’? 149 | return lcm_publish(this->lcm, channel.c_str(), data, datalen); | ^~~~~~~~~~~ | publish /usr/include/lcm/lcm-cpp-impl.hpp: At global scope: /usr/include/lcm/lcm-cpp-impl.hpp:154:1: error: ‘LCM’ has not been declared 154 | LCM::publish(const std::string& channel, const MessageType *msg) { | ^~~ /usr/include/lcm/lcm-cpp-impl.hpp:154:25: error: ‘string’ in namespace ‘std’ does not name a type 154 | LCM::publish(const std::string& channel, const MessageType *msg) { | ^~~~~~ /usr/include/lcm/lcm-cpp-impl.hpp:154:20: note: ‘std::string’ is defined in header ‘’; did you forget to ‘#include ’? 154 | LCM::publish(const std::string& channel, const MessageType *msg) { | ^~~ /usr/include/lcm/lcm-cpp-impl.hpp: In function ‘int publish(const int&, const MessageType*)’: /usr/include/lcm/lcm-cpp-impl.hpp:158:18: error: invalid use of ‘this’ in non-member function 158 | int status = this->publish(channel, buf, datalen); | ^~~~ /usr/include/lcm/lcm-cpp-impl.hpp: At global scope: /usr/include/lcm/lcm-cpp-impl.hpp:164:1: error: ‘LCM’ has not been declared 164 | LCM::unsubscribe(Subscription *subscription) { | ^~~ /usr/include/lcm/lcm-cpp-impl.hpp:164:18: error: ‘Subscription’ was not declared in this scope; did you mean ‘LCMMHSubscription’? 164 | LCM::unsubscribe(Subscription *subscription) { | ^~~~~~~~~~~~ | LCMMHSubscription /usr/include/lcm/lcm-cpp-impl.hpp:164:32: error: ‘subscription’ was not declared in this scope; did you mean ‘LCMMHSubscription’? 164 | LCM::unsubscribe(Subscription *subscription) { | ^~~~~~~~~~~~ | LCMMHSubscription /usr/include/lcm/lcm-cpp-impl.hpp:184:1: error: ‘LCM’ has not been declared 184 | LCM::getFileno() { | ^~~ /usr/include/lcm/lcm-cpp-impl.hpp: In function ‘int getFileno()’: /usr/include/lcm/lcm-cpp-impl.hpp:185:9: error: invalid use of ‘this’ in non-member function 185 | if(!this->lcm) { | ^~~~ /usr/include/lcm/lcm-cpp-impl.hpp:190:27: error: invalid use of ‘this’ in non-member function 190 | return lcm_get_fileno(this->lcm); | ^~~~ /usr/include/lcm/lcm-cpp-impl.hpp:190:12: error: ‘lcm_get_fileno’ was not declared in this scope 190 | return lcm_get_fileno(this->lcm); | ^~~~~~~~~~~~~~ /usr/include/lcm/lcm-cpp-impl.hpp: At global scope: /usr/include/lcm/lcm-cpp-impl.hpp:194:1: error: ‘LCM’ has not been declared 194 | LCM::handle() { | ^~~ /usr/include/lcm/lcm-cpp-impl.hpp: In function ‘int handle()’: /usr/include/lcm/lcm-cpp-impl.hpp:195:9: error: invalid use of ‘this’ in non-member function 195 | if(!this->lcm) { | ^~~~ /usr/include/lcm/lcm-cpp-impl.hpp:200:23: error: invalid use of ‘this’ in non-member function 200 | return lcm_handle(this->lcm); | ^~~~ /usr/include/lcm/lcm-cpp-impl.hpp:200:12: error: ‘lcm_handle’ was not declared in this scope; did you mean ‘handle’? 200 | return lcm_handle(this->lcm); | ^~~~~~~~~~ | handle /usr/include/lcm/lcm-cpp-impl.hpp: At global scope: /usr/include/lcm/lcm-cpp-impl.hpp:204:1: error: ‘LCM’ has not been declared 204 | LCM::handleTimeout(int timeout_millis) { | ^~~ /usr/include/lcm/lcm-cpp-impl.hpp: In function ‘int handleTimeout(int)’: /usr/include/lcm/lcm-cpp-impl.hpp:205:9: error: invalid use of ‘this’ in non-member function 205 | if(!this->lcm) { | ^~~~ /usr/include/lcm/lcm-cpp-impl.hpp:210:31: error: invalid use of ‘this’ in non-member function 210 | return lcm_handle_timeout(this->lcm, timeout_millis); | ^~~~ /usr/include/lcm/lcm-cpp-impl.hpp:210:12: error: ‘lcm_handle_timeout’ was not declared in this scope; did you mean ‘handleTimeout’? 210 | return lcm_handle_timeout(this->lcm, timeout_millis); | ^~~~~~~~~~~~~~~~~~ | handleTimeout /usr/include/lcm/lcm-cpp-impl.hpp: At global scope: /usr/include/lcm/lcm-cpp-impl.hpp:214:1: error: ‘Subscription’ does not name a type; did you mean ‘LCMMHSubscription’? 214 | Subscription* | ^~~~~~~~~~~~ | LCMMHSubscription /usr/include/lcm/lcm-cpp-impl.hpp:235:1: error: ‘Subscription’ does not name a type; did you mean ‘LCMMHSubscription’? 235 | Subscription* | ^~~~~~~~~~~~ | LCMMHSubscription /usr/include/lcm/lcm-cpp-impl.hpp:256:1: error: ‘Subscription’ does not name a type; did you mean ‘LCMMHSubscription’? 256 | Subscription* | ^~~~~~~~~~~~ | LCMMHSubscription /usr/include/lcm/lcm-cpp-impl.hpp:276:1: error: ‘Subscription’ does not name a type; did you mean ‘LCMMHSubscription’? 276 | Subscription* | ^~~~~~~~~~~~ | LCMMHSubscription /usr/include/lcm/lcm-cpp-impl.hpp:296:1: error: ‘lcm_t’ does not name a type 296 | lcm_t* | ^~~~~ /usr/include/lcm/lcm-cpp-impl.hpp:302:1: error: ‘LogFile’ does not name a type 302 | LogFile::LogFile(const std::string & path, const std::string & mode) : | ^~~~~~~ /usr/include/lcm/lcm-cpp-impl.hpp:308:1: error: ‘LogFile’ does not name a type 308 | LogFile::~LogFile() | ^~~~~~~ /usr/include/lcm/lcm-cpp-impl.hpp:319:1: error: ‘LogFile’ has not been declared 319 | LogFile::good() const | ^~~~~~~ /usr/include/lcm/lcm-cpp-impl.hpp:319:17: error: non-member function ‘bool good()’ cannot have cv-qualifier 319 | LogFile::good() const | ^~~~~ /usr/include/lcm/lcm-cpp-impl.hpp:319:1: error: redefinition of ‘bool good()’ 319 | LogFile::good() const | ^~~~~~~ /usr/include/lcm/lcm-cpp-impl.hpp:127:1: note: ‘bool good()’ previously defined here 127 | LCM::good() const | ^~~ /usr/include/lcm/lcm-cpp-impl.hpp: In function ‘bool good()’: /usr/include/lcm/lcm-cpp-impl.hpp:321:12: error: ‘eventlog’ was not declared in this scope 321 | return eventlog != NULL; | ^~~~~~~~ /usr/include/lcm/lcm-cpp-impl.hpp: At global scope: /usr/include/lcm/lcm-cpp-impl.hpp:324:7: error: ‘LogEvent’ does not name a type 324 | const LogEvent* | ^~~~~~~~ /usr/include/lcm/lcm-cpp-impl.hpp:342:1: error: ‘LogFile’ has not been declared 342 | LogFile::seekToTimestamp(int64_t timestamp) | ^~~~~~~ /usr/include/lcm/lcm-cpp-impl.hpp: In function ‘int seekToTimestamp(int64_t)’: /usr/include/lcm/lcm-cpp-impl.hpp:344:43: error: ‘eventlog’ was not declared in this scope 344 | return lcm_eventlog_seek_to_timestamp(eventlog, timestamp); | ^~~~~~~~ /usr/include/lcm/lcm-cpp-impl.hpp: At global scope: /usr/include/lcm/lcm-cpp-impl.hpp:348:1: error: ‘LogFile’ has not been declared 348 | LogFile::writeEvent(LogEvent* event) | ^~~~~~~ /usr/include/lcm/lcm-cpp-impl.hpp:348:21: error: ‘LogEvent’ was not declared in this scope 348 | LogFile::writeEvent(LogEvent* event) | ^~~~~~~~ /usr/include/lcm/lcm-cpp-impl.hpp:348:31: error: ‘event’ was not declared in this scope 348 | LogFile::writeEvent(LogEvent* event) | ^~~~~ /usr/include/lcm/lcm-cpp-impl.hpp:361:1: error: ‘LogFile’ has not been declared 361 | LogFile::getFilePtr() | ^~~~~~~ /usr/include/lcm/lcm-cpp-impl.hpp: In function ‘FILE* getFilePtr()’: /usr/include/lcm/lcm-cpp-impl.hpp:363:12: error: ‘eventlog’ was not declared in this scope 363 | return eventlog->f; | ^~~~~~~~