Wireshark-dev: Re: [Wireshark-dev] error LNK2001: unresolved external symbol (linking with diss

From: Graham Bloice <graham.bloice@xxxxxxxxxxxxx>
Date: Fri, 12 Oct 2012 15:28:13 +0100

The usual cause is the symbols not being exported as they aren’t in libwireshark.def

 

From: wireshark-dev-bounces@xxxxxxxxxxxxx [mailto:wireshark-dev-bounces@xxxxxxxxxxxxx] On Behalf Of Zadik, Maayan
Sent: 11 October 2012 18:02
To: wireshark-dev@xxxxxxxxxxxxx
Subject: [Wireshark-dev] error LNK2001: unresolved external symbol (linking with dissctors.lib)

 

Hi all,

i tried integrated packet-rohc in to PDCP dissector and i got the linker problem described below.
i checked and both dissectors.lib and libwireshark.lib are compiled and up to date.
can anyone help me with this?

1> link -dll /out:myLib.dll /NOLOGO /INCREMENTAL:no /DEBUG /MACHINE:x86 /SafeSEH /DYNAMICBASE /FIXED:no /MANIFEST:no packet-myLib.obj  packet-mac-lte-myLib.obj  packet-rlc-lte-myLib.obj  packet-pdcp-lte-myLib.obj  plugin.obj ..\..\libwireshark.lib ..\dissectors.lib  C:\wireshark-win32-libs\gtk2\lib\glib-2.0.lib  C:\wireshark-win32-libs\gtk2\lib\gmodule-2.0.lib  C:\wireshark-win32-libs\gtk2\lib\gobject-2.0.lib myLib.res
1>   Creating library myLib.lib and object myLib.exp
1>dissectors.lib(packet-rohc.obj) : error LNK2001: unresolved external symbol _tfs_set_notset
1>dissectors.lib(packet-rtp.obj) : error LNK2001: unresolved external symbol _tfs_set_notset
1>dissectors.lib(packet-rohc.obj) : error LNK2001: unresolved external symbol _ipproto_val_ext
1>dissectors.lib(packet-rohc.obj) : error LNK2001: unresolved external symbol _tfs_present_not_present
1>NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 9.0\VC\bin\link.EXE"' : return code '0x460'
1>Stop.
1>myLib.dll : fatal error LNK1120: 3 unresolved externals

Regards,
Maayan