Wireshark-dev: Re: [Wireshark-dev] se_tree_foreach() not compiling under XP
From: Stephen Fisher <[email protected]>
Date: Sun, 13 Apr 2008 21:32:12 -0600
On Sun, Apr 13, 2008 at 06:39:32PM +0200, [email protected] wrote:

>  I can't compile my code with the function se_tree_foreach (from 
>  emem.h), I got following error (if I comment out the function it runs 
>  sucessfully):
> LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of 
> other libs; use/NODEFAULTLIB:library
>  libui.lib(compare_stat.obj) : error LNK2019: unresolved external 
> symbol _emem_tree_foreach referenced in function _comparestat_draw 
> wireshark.exe : fatal error LNK1120: 1 unresolved externals NMAKE : 
> fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 
> 8\VC\BIN\link.EXE"' : return code '0x460' Stop. the interesting thing 
> is that it works on my Fedora. Any Idea what the problem is??

In case you haven't heard from Ulf (I didn't see an e-mail from him), he 
has placed emem_tree_foreach in the exports list for libwireshark (in 
epan/libwireshark.def) as of SVN revision 25003.  This process is only 
needed for Windows builds, which is why your code compiled fine on 
Linux.


Steve