Category Archives: C

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.


Tagged , , , , ,