I had the same problem in Eclipse. I order to link this library to your project, right click the project in "Project Explorer" (short view) and choose "Properties". On the left go to "C/C++ Build" > "Settings" and on the "Settings" panel go to "Tool Settings" > "GCC C Linker" (if this is your compiler) > "Libraries" > and add the word "pcap" in the list titled "Libraries (-l)". Press "Apply" on the bottom and then "OK". Click "Project" > "Build All" and this should do the job. It should be no errors now. :)
相关文章
- wampserver 报错 Fatal error:Call to undefined function curl_init()
- 有关使用phpstudy搭建sqli-lab环境搭建时发生Uncaught Error: Call to undefined function mysql_connect()错误
- VScode报错:undefined reference to ‘WinMain’ : error: ld returned 1 exit status
- VScode报错:undefined reference to ‘WinMain’ : error: ld returned 1 exit status
- [Vue warn]: Error in render: "TypeError: Cannot read property '0' of undefined、vuejs路由使用的问题Error in render function
- Fatal error: Call to undefined function mysql_connect()
- Fatal error: Call to undefined function mb_strlen()
- fatal error: Call to undefined function mysqli_connect()
- php提示Fatal error: Call to undefined function imagecreate()
- Eclipse c++ 中[Linker error] undefined reference to `[email protected]‘的解决办法