尝试构建wireshark解剖器时出现前向声明错误

时间:2013-11-27 09:33:36

标签: gcc build g++ makefile wireshark

在.cpp文件中,我有一个特殊的extern“C”{}代码。 当我尝试构建此文件时,出现前向声明错误。

In file included from ../../epan/proto.h:51:0,
                 from ../../epan/packet.h:29,
                 from packet-xxx.h:13,
                 from packet-xxx.cpp:8:
../../epan/tvbuff.h:64:8: error: forward declaration of 'tvbuff_t {aka struct tvbuff}'

坚持了一段时间。 有什么建议/线索吗?

0 个答案:

没有答案