0

我正在尝试构建 lttng-tools 并且我不断得到这个

../../../src/common/sessiond-comm/sessiond-comm.h:713:28: error: field ‘channel’ has incomplete type
  713 |   struct lttng_ust_channel channel;
      |                            ^~~~~~~
../../../src/common/sessiond-comm/sessiond-comm.h:714:27: error: field ‘stream’ has incomplete type
  714 |   struct lttng_ust_stream stream;
      |                           ^~~~~~
../../../src/common/sessiond-comm/sessiond-comm.h:715:26: error: field ‘event’ has incomplete type
  715 |   struct lttng_ust_event event;
      |                          ^~~~~
../../../src/common/sessiond-comm/sessiond-comm.h:716:28: error: field ‘context’ has incomplete type
  716 |   struct lttng_ust_context context;
      |                            ^~~~~~~
../../../src/common/sessiond-comm/sessiond-comm.h:717:35: error: field ‘version’ has incomplete type
  717 |   struct lttng_ust_tracer_version version;

我还没有找到任何前向声明。是否可以让 GCC 告诉我它在哪里?

4

0 回答 0