Wireshark-dev: Re: [Wireshark-dev] linking error for rval_to_str function
From: Graham Bloice <[email protected]>
Date: Thu, 21 Jun 2007 14:36:47 +0100
Stratemeier, Frank wrote:
> Hi Community,
> when I try to use the rval_to_str function in my plugin (build for
> wireshark version 0.99.5 with MSVC 2005) nmake returns the following
> message:
> packet-jetip.obj : error LNK2019: unresolved external symbol
> _rval_to_str referenced in function _dissect_reply
> Nevertheless, calls to val_to_str are working without any problems and
> those two functions are defined in the same file! :o
> Any ideas about this?

On win32 functions that are exported from libwireshark and available to
plugins need to be listed in epan\libwireshark.def.  rval_to_str isn't
currently listed.  Add it, rebuild libwireshark and you should be good to go.

Assuming that this does the trick, submit a patch to change the svn copy.


Graham Bloice