osx を使用して、インターネットで入手した .a ファイルと .h ファイルに付属する別のファイルを実行する方法を教えてください。
Mac端末を使用しています。
File with .a
extension is an archive library
and File with .h
extension is a header file
to expose the internals of the library.
These files cannot be run!
ソースにヘッダー (.h) をインクルードし、ライブラリ (ここでは ``libx) を次のようにリンクする必要があります。
gcc -o myprog myprog.c -L/path/to/libx -lx