curl/types.h: No such file or directory问题的解决

在程序中用到了libcurl,编译时出现

curl/types.h: No such file or directory错误

查找到http://projects.springlobby.info/issues/1575中提到了这个问题

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中

我的解决方法是在

  1. cd /usr/include/curl/ 
  2. sudo ln -s curl.h types.h 
cd /usr/include/curl/
sudo ln -s curl.h types.h

再编译,问题没有了。

posted @ 2013-11-05 17:32  天王星天  阅读(3675)  评论(0)    收藏  举报