I was trying to make a program to sniff packets and went to libtins
If you are using a static build of libtins on Windows, then you have link your application with tins.lib. You also need to add this macro definition to your project: TINS_STATIC
What does it mean? It even does not have a value. Can some one help me how to add this in visual studio?
Does it mean something like
#define TINS_STATIC
See this answer for a full guide for using libtins with Visual Studio.
Using
#define TINS_STATIC(before including any libtins headers) would work. Alternatively you could addTINS_STATICin the project settings underC/C++>Preprocessor>Preprocessor definitions.It does not need to have a value, because the libtins header only checks if the symbol is defined, not what value it has (reference):