标签: c macos compiler-errors header-files
我正在尝试在Mac OS Catalina上使用libelf.h标头编译C程序。我收到以下错误消息:
libelf.h
fatal error: 'libelf.h' file not found #include <libelf.h> ^~~~~~~~~~
我跟随these directions并安装了libelf,并在gcc和clang中都使用了-lelf标志。仍然无法在Mac OS上进行编译(它在Ubuntu上进行编译)。我不确定从这里去哪里...
-lelf