3
rated 0 times
[
3]
[
0]
/ answers: 1 / hits: 3729
/ 2 Years ago, tue, march 22, 2022, 4:22:18
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 (only a blank space). The program compiles correctly if I add the flag and --libs
. I only do not understand why pkg-config --cflags libcurl
returns nothing)
More From » compiling