Cygwin:Libcurl 不工作
我似乎无法让 libcurl 工作。我已经使用 cygwin 软件包安装程序安装了它,但是当我在 cygwin bash shell 中运行它时:
gcc -Wall -lcurl -g blah.c -o blah
我得到:
curl/curl.h: 没有这样的文件或目录`,
然后由 #include
引发的错误不起作用。
I can't seem to get libcurl to work. I've installed it with the cygwin package installer but when I run it in the cygwin bash shell with:
gcc -Wall -lcurl -g blah.c -o blah
It I get:
curl/curl.h: No such file or directory`,
then following errors that provoked by the #include <curl/curl.h>
not working.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
![扫码二维码加入Web技术交流群](/public/img/jiaqun_03.jpg)
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果找到curl.h,则使用以下内容进行编译:
但不包含“curl.h”,仅包含包含它的目录。如果您这样做:
则仅使用包含curl目录的目录作为
-I
参数。man gcc 了解更多信息。
if curl.h is found, compile with this:
but do not include 'curl.h', just the directory containing it. If you are doing it like this:
then only use the directory that contains the curl directory as the
-I
parameter.man gcc for more info.