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. :)
相关文章
- "Fatal error: Call to undefined function: file_put_contents()"
- Fatal error: Call to undefined function imagettftext()解决办法
- windows下Call to undefined function curl_init() error问题
- error:undefined reference to 'net_message_processor::net_message_processor()'
- Eclipse error undefined reference to pcap function
- Fatal error: Call to undefined function mysql_connect()
- php链接sql server报错Fatal error: Call to undefined function mssql_connect()
- PHP Fatal error: Call to undefined function sqlsrv_connect()
- 在线等,谢谢大家了!!!!Fatal error: Call to undefined function mssql_connect() in
- php在iis上配置时报Fatal error: Call to undefined function mysql_connect() in 错误解决办法