Wireshark-dev: Re: [Wireshark-dev] mix of c and C++
From: Helge Kruse <[email protected]>
Date: Mon, 18 Jul 2011 15:23:45 +0200
Am 18.07.2011 11:24, schrieb sagar sg:
         My Dissector is in C++ and internally uses wireshark libraries ( eg:
epan ) , Is there any way to wrote makefile such that we can mix the gcc and
g++ compilers for particular type of code to be compiled with corresponding
compiler ??

Sagar G

This mix is not a Wireshark problem, but a general tools question.

The makefile defines, which tools shall be started in a specific order to generate the result. This can be a program if you use a C/C++ compiler and a linker or anything else, e.g. when compiling beautiful PDF files from LaTex source.
When you want to address C/C++ mixed code you just need to discuss how 
to write the source code and how to use the compilers. Regarding your 
problem to compile something that includes tfs.h you should send following:
- the name of the compiler that is actually started (gcc,g++)
- the exact list of parameters passed to the compiler
- the exact error message, (copy&paste is your friend)
- an excerpt of your source file with all lines including the line that causes the error.
Of course it's more convenient to send the complete source file instead 
of the excerpt.