Ethereal-dev: Re: [Ethereal-dev] Broken build (MSVC) rtnet.c fails to build

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

From: Lars Roland <lars.roland@xxxxxxx>
Date: Fri, 26 Nov 2004 02:28:27 +0100
Guy Harris schrieb:
Anders Broman (AL/EAB) wrote:

Sorry to say it still does not work, does it have to be added to the plugins API?


Unfortunately, that won't work - if "flags_set_truth" were #defined as (*p_flags_set_truth), "&flags_set_truth", i.e. "p_flags_set_truth", couldn't be used in a static initialization.

It should work if you build libethereal as a DLL *and* undefine PLUGINS_NEED_ADDRESS_TABLE in the top-level config.h.

You can also uncomment LINK_PLUGINS_WITH_LIBETHEREAL in config.nmake instead.

If that does work, is it time that we just *require* that libethereal be built as a DLL on Windows - and get rid of the plugin API table stuff entirely?

The problem here might be that "flags_set_truth" is a variable and not a function. AFAIK the plugin API table contains only functions.

Regards,
Lars