0

osx を使用して、インターネットで入手した .a ファイルと .h ファイルに付属する別のファイルを実行する方法を教えてください。

Mac端末を使用しています。

4

2 に答える 2

3

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!

于 2013-10-22T15:28:04.517 に答える
0

ソースにヘッダー (.h) をインクルードし、ライブラリ (ここでは ``libx) を次のようにリンクする必要があります。

gcc -o myprog myprog.c -L/path/to/libx -lx
于 2013-10-22T15:31:23.750 に答える