在Mac OS上如何使用libelf.h进行编译?

时间:2020-02-24 17:08:10

标签: c macos compiler-errors header-files

我正在尝试在Mac OS Catalina上使用libelf.h标头编译C程序。我收到以下错误消息:

fatal error: 'libelf.h' file not found
#include <libelf.h> 
     ^~~~~~~~~~

我跟随these directions并安装了libelf,并在gcc和clang中都使用了-lelf标志。仍然无法在Mac OS上进行编译(它在Ubuntu上进行编译)。我不确定从这里去哪里...

0 个答案:

没有答案
相关问题