Eclipse error undefined reference to pcap function
2012-11-12 15:12
465 查看
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. :)
相关文章推荐
- Eclipse c++ 中[Linker error] undefined reference to `WSAStartup@8'的解决办法
- cocos2dx通过用eclipse移植android时出现 error: undefined reference to "XXX类:XX()"
- 解决In function `mwException::mwException()': undefined reference to `mclcppCreateError'
- crtbegin_dynamic.o: in function _start:crtbrand.c(.text+0x78): error: undefined reference to 'main
- error: undefined reference to 'vtable for android::DongleUsbHost'
- Linux下eclipse编译C/C++程序遇到 undefined reference to `pthread_create'的异常解决办法
- Dev C++中的错误的解决[Linker error] undefined reference to `__dyn_tls_init_callback'
- Fatal error: Call to undefined function session_is_registered() 函数已废弃
- eclipse 函数编译时报错:undefined reference to `pthread_create’
- Linux c++ error: undefined reference to 'dlopen' 解决办法
- error: undefined reference to '__gxx_personality_v0'
- apache,php安装好之后提示Fatal error: Call to undefined function mb_detect_encoding()
- undefined reference to typeinfo - C++ error message
- Fatal error: Call to undefined function fnmatch() 解决
- Fatal error: Call to undefined function mysql_connect() in F:\急求解决方法
- Eclipse - Eclipse gcc-none-arm 编译出现undefined reference to `_sbrk'
- Fatal error: Call to undefined function mysql_connect() in……
- Error: Call to undefined function _()
- PHP连接MySQL报错:Fatal error: Call to undefined function mysql_connect()之解决方法
- "Fatal error: Call to undefined function: file_put_contents()"