对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个回答

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

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

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问
相关内容推荐