我正在尝试从SIGAR API 运行 C 库。在包含目录中,它有几个 .h 文件,我正在尝试使用以下命令运行这些文件。我得到“无法执行二进制文件”,我该如何解决?
[oracle@oracleapps include]$ pwd
/home/oracle/sigar/hyperic-sigar-1.6.4/sigar-bin/include
[oracle@oracleapps include]$ cc -o test sigar_fileinfo.h
[oracle@oracleapps include]$ ./test
-bash: ./test: cannot execute binary file
[oracle@oracleapps include]$