Ethereal-dev: Re: [Ethereal-dev] C++ (maybe again?)

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Guy Harris <gharris@xxxxxxxxx>
Date: Fri, 15 Apr 2005 10:22:29 -0700
Jay Kumar wrote:

I have some proprietary protocol files that are in C++.  How do I add
them to Ethereal?

Make sure that the dissection code in question can be called from C, and then wrap them in code that implements the standard C-based dissector interfaces.

Can Ethereal be compiled using g++?

The code in Ethereal can be compiled using g++ only if g++ can compile C code as C code. However, if it can, it probably just compiles it as C, so you might as well compile the existing code with gcc, and compile only your C++ code with g++.