Ethereal-dev: [Ethereal-dev] Problem linking plugin in Win32

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

From: Thomas Boehne <TBoehne@xxxxxxxx>
Date: Thu, 16 Sep 2004 13:02:51 +0200
I wrote a dissector that works fine on linux. It compiles properly on
Windows, but I have trouble linking it (see below).

I am using proto_tree_add_float and tvb_get_letohieee_float in my
dissector. After a nmake -f Makefile.nmake xyzzy (who came up with
that name?) the two functions do not show up in any of the Xplugin_*
or plugin_* files. Is that correct? They do show up in the xyzzy file,
though.

----------8<----------Snipp----------------------------------------
link -dll /out:adwin.dll packet-adwin.obj ..\plugin_api.obj \
C:\ethereal-win32-libs\glib\lib\glib-2.0.lib                \
C:\ethereal-win32-libs\glib\lib\gmodule-2.0.lib             \
C:\ethereal-win32-libs\glib\lib\gobject-2.0.lib
Microsoft (R) Incremental Linker Version 6.00.8168
Copyright (C) Microsoft Corp 1992-1998. All rights reserved.

   Creating library adwin.lib and object adwin.exp
packet-adwin.obj : error LNK2001: unresolved external symbol \
_proto_tree_add_float
packet-adwin.obj : error LNK2001: unresolved external symbol \
_tvb_get_letohieee_float
adwin.dll : fatal error LNK1120: 2 unresolved externals

---------->8----------Snapp----------------------------------------

Any hints?

Greetings,
Thomas Böhne

PS: Thanks to ULFL for the developer-guide, it helped a lot. 

-- 
Jäger Computergesteuerte Messtechnik GmbH
Thomas Böhne
Rheinstraße 2-4
64653 Lorsch
Germany
Phone: +49-6251-9632-0