Ethereal-dev: RE: [Ethereal-dev] C++ plugins

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

From: "Jasim Tariq" <jasimtariqjt@xxxxxxxxxxx>
Date: Tue, 28 Feb 2006 08:49:38 -0800
Do you have a working Ethereal development environment? Do you have a
working plugin (using C sources)?

Yes, and I have a working plugin using C sourses.

Then create a new source file that will become the entry point to the C
++ plugin. Let it be compiled and linked as if it were a C++ application.

Will this new source file be a C or a C++ file? Also, what do you mean by entry point to the C++ plugin? Im guessing copy pasting the whole code as a C++ sourse file and then enclosing it in extern "C". But the same problem, I get "Cannot open include file: 'glib.h': No such file or directory, because my File extension is .cpp instead of .c. If I comment out glib.h, then I get the same error for gmodule.h and so on. I am not using Visual C++. Just the command prompt because I am using Cygwin tools for building ethereal and my plugin.

Thanks,
Jasim