C PCAP library unknown types error

一笑奈何 提交于 2019-12-03 02:39:45

Make sure you do NOT define any of:

  • __STRICT_ANSI__
  • _ISOC99_SOURCE
  • _POSIX_SOURCE
  • _POSIX_C_SOURCE
  • _XOPEN_SOURCE
  • _SVID_SOURCE

when building your program; they may prevent the BSD data types, such as the ones the compile is complaining about, from being defined.

Try adding

     -D_BSD_SOURCE

az a CFLAG to your Makefile.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!