LNK2001 error building WS with custom dissector
Hello!
I'm currently working on updating & modifying a custom CAN dissector for Wireshark 2.4.7 that can be found here: https://canlogger.csselectronics.com/...
Problem is, when following the build guide for Windows there's no problem when building the "clean" Wireshark cloned from git, but when adding the dissector, at the building step I get this error LNK2001: unresolved external symbol open_routines.......
This open_routines function is needed (from what've seen in the code) to read the some DBC files required for this plugin/dissector to work. Also, I've double checked that the correct header files are included in the dissector
Currently, the only function where open routines is being used is in the following function:
static wtap_open_return_val dbc_multirow_open (wtap *wth, int *err, gchar **err_info, const char *name){
wtap_open_return_val ret = WTAP_OPEN_NOT_MINE;
unsigned int real_type;
dbc_multi_row_active = FALSE;
if (dbc_multi_row == FALSE)
return ret;
real_type = open_info_name_to_type(name);
if (real_type != WTAP_TYPE_AUTO)
ret = open_routines[real_type - 1].open_routine(wth, err, err_info);
if (ret == WTAP_OPEN_MINE && wth->file_encap == WTAP_ENCAP_SOCKETCAN)
{
dbc_multirow_orig_wtap = *wth;
wth->subtype_read = dbc_multirow_read;
wth->subtype_seek_read = dbc_multirow_seek_read;
dbc_multirow_frame_no = 0;
dbc_multirow_signal_count = 0;
dbc_multi_row_active = TRUE;
}
return ret; }
AFAIK, it's responsible for opening the DBC files and expects either a MINE/NOT_MINE/ERROR value. If I force it to have a MINE, Wireshark builds but crashes when loading the DBC files.
Here's the error (in spanish) for more context.
Thanks!!!!
And there's the error, converted from small text, some of which is red-on-black, to regular text for the benefit of older readers with older eyes, and Google-translated while I'm at it:
(more)