Compiling a c program after installing libcurl

view full story

http://askubuntu.com – I installed libcurl using :sudo apt-get install libcurl4-openssl-dev. When I try to compile my program I read that we have to pass where libcurl is located to the GCC compiler(although for me its located at /usr/include). Therefore according to http://ubuntuforums.org/showthread.php?t=1175115 I compiled it using gcc myfile.c $(pkg-config --libs --cflags libcurl) -o myprogram But if I only enter pkg-config --cflags libcurl it prints nothing.If i remove the --cflags it doesnt compile correctly. Does anyone know why.(The program compiles correctly if I add the flag. I only do not understand w (HowTos)