I am trying to run the C libraries from SIGAR API. In the include directory it has few .h files, which i am trying run using below commands. I get "cannot execute binary file", how do i fix it?
[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]$
I realize that i cannot compile .h files, hence i wrote another .c program and called the c libraries. This have resolved my issue