sinat_35128840 2016-06-28 12:22 采纳率: 0%
浏览 1241

对MakeFile 不是很懂,麻烦看一下出了什么问题

g++ -o spider -rdynamic -levent -lcrypt -ldl -pthread bloomfilter.o confparser.o crc32.o dso.o hashs.o md5.o qstring.o sha1.o socket.o spider.o threads.o url.o

dso.o: In function dso_load(char const*, char const*)':
dso.cpp:(.text+0x4d): undefined reference to
dlopen'
dso.cpp:(.text+0x5d): undefined reference to dlsym'
dso.cpp:(.text+0xc4): undefined reference to
dlerror'
dso.cpp:(.text+0x16f): undefined reference to dlerror'
url.o: In function
urlparser(void*)':
url.cpp:(.text+0xf4a): undefined reference to event_init'
url.cpp:(.text+0xf51): undefined reference to
evdns_init'
url.cpp:(.text+0xf73): undefined reference to evdns_resolve_ipv4'
url.cpp:(.text+0xf78): undefined reference to
event_dispatch'
url.cpp:(.text+0xf80): undefined reference to event_base_free'
url.o: In function
dns_callback(int, char, int, int, void*, void*)':
url.cpp:(.text+0xfee): undefined reference to `event_loopexit'
collect2: ld returned 1 exit status

  • 写回答

2条回答 默认 最新

  • qq_33877760 2016-06-28 13:03
    关注

    参数或函数未定义,或者是少包含了某个头文件

    评论

报告相同问题?

悬赏问题

  • ¥15 HFSS 中的 H 场图与 MATLAB 中绘制的 B1 场 部分对应不上
  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?