开发者

not able to compile a libcurl program in C

开发者 https://www.devze.com 2023-04-01 02:44 出处:网络
I am trying to run a libcurl program, but I am getting the following erro开发者_开发知识库r: fatal error: curl/curl.h: No such file or directory

I am trying to run a libcurl program, but I am getting the following erro开发者_开发知识库r:

fatal error: curl/curl.h: No such file or directory

Can anyone give me step by step instructions to install libcurl on a linux machine. Thanks in advance.


I found this result on Google, but I'm using Fedora, and had to use this command:

sudo yum install libcurl-devel

Hopefully, this will help someone who is trying to do what I just did.


@ compile time linkit

gcc -Wall hellWeb.c -lcurl -o helloWeb
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号