I'm trying to build an old dissector with the new wireshark source and I'm facing this compilation problem and am not able to resolve it. More log: packet-xxx.cpp:467:7: error: invalid use of incomplete type 'tvbuff_t {aka struct tvbuff}' In file included from ../../epan/proto.h:51:0, from ../../epan/packet.h:29, from packet-xxx.cpp:51: ../../epan/tvbuff.h:64:8: error: forward declaration of 'tvbuff_t {aka struct tvbuff}' make: *** [packet-xxx.lo] Error 1 asked 26 Nov '13, 02:05 pysudhir |
One Answer:
The problem is that the (The reason the structure is opaque is exactly to ensure that it is only accessed via the accessor functions.) answered 26 Nov '13, 06:26 JeffMorriss ♦ |
Are you building a C++ dissector? Not sure that will work.
That is exactly the problem. Could you point me out to the changes in the configure.ac file that are needed to compile a c++ dissecotr?
Why not go with the flow and write it in C? That also makes it possible to contribute the code.
@pysudhir
As suggested by @Anders comment, there aren't any C++ dissectors in the mainline Wireshark source code.
External additions to the project (plugins) have used C++, WSGD comes to mind, so maybe look at that.