在程序中用到了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

再编译,问题没有了。

相关文章:

  • 2022-12-23
  • 2022-01-13
  • 2021-10-26
  • 2021-10-11
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-06-26
  • 2021-10-22
  • 2021-08-22
  • 2021-11-28
  • 2022-12-23
相关资源
相似解决方案