While compiling the dissector on linux i am getting the fallowing error does anybody know the solution to this wireshark-1.4.7/epan/prefs.h:167: error: WS_VAR_IMPORT does not name a type asked 17 Jul '11, 23:58 sagu072 |
One Answer:
Make sure to include config.h before prefs.h in your dissector, like so:
answered 18 Jul '11, 01:51 Jaap ♦ edited 18 Jul '11, 01:52 |
I have included that but still getting the error. my code is in C++, so do i need to use both g++ and gcc compilers ?
Note Wireshark is a C project, no C++.
Did you work with namespaces?
ya i do use namespace and i have included that in source.
Then you may be doing that wrong. See here.