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
    关注

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

    评论

报告相同问题?

悬赏问题

  • ¥20 ML307A在使用AT命令连接EMQX平台的MQTT时被拒绝
  • ¥20 腾讯企业邮箱邮件可以恢复么
  • ¥15 有人知道怎么将自己的迁移策略布到edgecloudsim上使用吗?
  • ¥15 错误 LNK2001 无法解析的外部符号
  • ¥50 安装pyaudiokits失败
  • ¥15 计组这些题应该咋做呀
  • ¥60 更换迈创SOL6M4AE卡的时候,驱动要重新装才能使用,怎么解决?
  • ¥15 让node服务器有自动加载文件的功能
  • ¥15 jmeter脚本回放有的是对的有的是错的
  • ¥15 r语言蛋白组学相关问题