Hello, I have tried to put bitwise-and(&) into the display filter Dialog box's sources, made proper and necessary changes that are required (like calling the bitwise-and related function (ftype_can_bitwise_and) from ftypes/ftypes.c same as the other operator functions are called). There are no compile-time errors but at the end I'm facing a linker error called :
Please help. This question is marked "community wiki". asked 07 Oct '11, 00:18 Terrestrial ... edited 07 Oct '11, 05:25 grahamb ♦ |
One Answer:
As I can't find the symbol If this is the case you will also need to add it to the list of exported functions in epan\libwireshark.def so that code outside of libwireshark can use it. answered 07 Oct '11, 01:15 grahamb ♦ edited 07 Oct '11, 01:16 showing 5 of 6 show 1 more comments |
thanks Grahamb. Im trying to put triggers so i have defined a function called ftype_can_trig but it didnt allow. I have tried to add bitwise and as it is already present but not activated. Finally i made the code little messy.
I have also include one of my variable from epan/ftypes/ftypes.h into the libwireshark.def but this isn't working. I followed the rules presented in that def file.
Code in ftypes.h typedef struct _a_b { int r; gint64 t; int tr; gint64 tri; }a_b;
WS_VAR_IMPORT a_b ab_struct;
Appended text in the libwireshark.def is
ab_struct DATA
Please Help!!
I guess it's a linker error again about unresolved externals?
Are you sure you've rebuilt libwireshark as what you've done seems correct to me?
I have distcleaned and compiled it but this time there are no linker errors. Instead, I got the errors like:
ftype-integer.c
ftype-integer.c(258) : error C2037: left of 'tri' specifies undefined struct/union 'a_b'
ftype-integer.c(259) : error C2037: left of 'r' specifies undefine d struct/union 'a_b'
etc kind of Compile time errors.
Basic c syntax errors then. This is probably better handled on the dev mailing list rather than the Q&A site. Post the relevant code and errors there. See here for more details
should i mail to [email protected] from my gmail account?