Ethereal-dev: Re: [ethereal-dev] Win32 plugin DLLs

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

From: Guy Harris <gharris@xxxxxxxxxxxx>
Date: Wed, 2 Feb 2000 01:01:48 -0800
> First, I had to make some changes to packet-gryphon.c. I had to #include <time.h> for
> ctime(), and I had to modify the two sections of code that use "long long". Maybe
> there's a switch for msvc 6.0's "cl" to use long long's?

Perhaps, but I have the impression that there's an "__int64" data type,
or something such as that, as well (I think it had at least one
underscore at the beginning, maybe more, had "int" in it somewhere, and
had either "64" or "8" in it).

> But code modifications aside, I have build problems.
> 
> In Unix/gcc, I have to compile with "-fPIC", to indicate relocatable object code.
> What about on Win32?

I *think* shared library DLLs may get assigned a default address, and
get relocated (and, as in UNIX systems, made unshared) if they don't get
loaded there, but

	1) I'm not certain of that;

	2) I don't know how that applies to
	   explicitly-loaded-by-the-application DLLs.