Running C curl code on LINUX/UBUNTU

Apart from default installations following is required:
apt-get update
apt-get install libcurl4-openssl-dev

How to run the code?
gcc code_filename -l curl -o compiled_filename

– l is used to link the compiler with curl. This shall make sure there is no curl.h import error.

References:
http://askubuntu.com/questions/78183/installing-curl-h-library

Advertisements
Tagged , , , , ,

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: