This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

error LNK2019

0

hello guys,

I just add a sub-menu in menu 'statistics', and I created a new file named 'vss_dlg.c' and then copy some code from 'summary_dlg.c' and filled into the 'vss_dlg.c', some related code also modified, but still some ERROR founded as below:

libui.lib(vss_dlg.obj) : error LNK2019: unresolved external symbol _vss_fill_in_capture referenced in function _vss_open_cb

libui.lib(vss_dlg.obj) : error LNK2019: unresolved external symbol _vss_fill_in referenced in function _vss_open_cb

wireshark.exe : fatal error LNK1120: 2 unresolved externals

NMAKE : fatal error U1077: '"C:Program FilesMicrosoft Visual Studio 9.0VCBINlink.EXE"' : return code '0x460' Stop.

Who guys met this problem before?

Many thanks in advance!

Sam

asked 28 Oct '11, 17:53

Sam's gravatar image

Sam
517914
accept rate: 0%


One Answer:

0

Your changes have introduced the error but as you haven't really told us what your changes are we can't really help you.

However the explanation of the LNK2019 error is that a function is called, but there is no definition of the function in any object file fed to the linker.

In your case you are calling vss_fill_in_capture and vss_open_cb which are presumably new functions from your changes but there is no definition of these two functions in any of the object files fed to the linker when linking libui.lib.

See also the MSDN page for the error here.

answered 29 Oct '11, 12:03

grahamb's gravatar image

grahamb ♦
19.8k330206
accept rate: 22%

thanks a lot, Grahamb.

(30 Oct '11, 18:09) Sam