编译xmlRPC报错,xmlrpc-c用到了libcurl:
lib/curl_transport/curlmulti.c:22:24: fatal error: curl/types.h:No such file or directory
- gcc -Wall -Iinclude -I. -Ilib/util/include/ -I/usr/local/include -I/usr/include/libxml2 -c -o lib/curl_transport/curlmulti.o lib/curl_transport/curlmulti.c
- lib/curl_transport/curlmulti.c:22:24: fatal error: curl/types.h: No such file or directory
- compilation terminated.
- make[1]: * [lib/curl_transport/curlmulti.o] Error 1
查找到
This is a problem on archlinux which just got curl 7.21.7.
curl devs removed curl/types.h and put its content in curl/curl.h.
意思是在新版中把curl/types.h合并到了curl/curl.h中
解决方法:
- lib# cd /usr/include/curl/
- root@AY130302115939322bd1:/usr/include/curl# ls
- curlbuild.h curl.h curlrules.h curlver.h easy.h mprintf.h multi.h stdcheaders.h typecheck-gcc.h
- root@AY130302115939322bd1:/usr/include/curl# sudo ln -s curl.h types.h
再编译,问题没有了。