curl/curl.h file not found in FreeBSD
When I use clang to compile test.c, the following error occurs.
fatal error: 'curl/curl.h' file not found
The compile command is:
$ clang test.c -o test
I did some research. Then I know I need to change the compile command as follows:
$ clang -I/usr/local/include -L/usr/local/lib -lcurl test.c -o test
Comments
Post a Comment