I had added a new file in dissector folder. The file had two functions for registering few dissectors - proto_register_bacnetSBT and proto_reg_handoff_bacnetSBT.
I add reference of this file in following to compile
Now I have removed this file and its references from above 2 files. but i am still getting linker errors. I am using Visual C++ 2008 Express. I clean solution before compiling. I also tried distclean and compiling using command propmpt. (nmake -f Makefile.nmake disclean and all)
Creating library libwireshark.lib and object libwireshark.exp register.obj : error LNK2019: unresolved external symbol _proto_register_bacnetS BT referenced in function _register_all_protocols register.obj : error LNK2019: unresolved external symbol _proto_reg_handoff_bacn etSBT referenced in function _register_all_protocol_handoffs libwireshark.dll : fatal error LNK1120: 2 unresolved externals NMAKE : fatal error U1077: '"C:Program FilesMicrosoft Visual Studio 9.0VCBIN link.EXE"' : return code '0x460' Stop. NMAKE : fatal error U1077: '"C:Program FilesMicrosoft Visual Studio 9.0VCBIN nmake.exe"' : return code '0x2' Stop.
Can you please tell me what do we need to do to remove these linker errors?
asked 20 Apr '11, 09:07
The references come from register.c, found in epan/.
This file should be regenerated when you make changes to Makefile.common. I'm not sure why that doesn't happen, but you could remove it, regenerate it or modify by hand.
answered 20 Apr '11, 09:12