Ethereal-dev: Re: [Ethereal-dev] problems with compiling a dissector under win-xp

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: Wed, 26 Apr 2006 01:06:03 -0700
Patrick Fuchs wrote:
If i compile my dissector in linux everything works fine. if i try to compile the same dissector under windows xp with an installed cygwin and the visual c++ compiler i get a long list of warnings and errormessages. It's nonrelevant if i try to compile the dissector as a Plug-In or a Build-In. If it try to compile only the etheral-source without the dissector everything works fine again. Any suggestions?

There might be some data type you're using that happens, by pure luck, to be defined on Linux - or perhaps on other UN*Xes - by the header files you happen to be including, but that's not defined on Windows by the header files you're including.

I'd have to see your source code, however, in order to be able to do much more than just say that.

You're not using "u_int", "u_short", "u_long", or any of those types, are you? If so, don't - use the GLib types, such as "gint", "guint", "guint32", "guint16", "guint8", etc..