在.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}'
坚持了一段时间。 有什么建议/线索吗?