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

Popular posts from this blog

BdsDex: failed to load Boot0001 "UEFI BHYVE SATA DISK BHYVE-OABE-20A5-E582" from PciRoot(0x0)/Pci (0x2, 0x0)/Stat(0x0,0xFFFF,0x0) : Not Found

How to Dockerizing LEMP Stack with Docker-Compose

How To Install Nginx, MySQL and PHP (FEMP) Stack on FreeBSD 13.0