Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ライブラリを作成しましたが、手動で .a および .h ファイルを含めるのではなく、実行スクリプトを使用して含めたいと考えています。どうやってするか?
それは失敗します。コンパイラは、コンパイル時に少なくとも h ファイルを必要とします。
アーカイブの場合..理論的にはld手動で呼び出すことができますが、コンパイラーがファイルを認識せず、シンボルの欠落に関するエラーが発生する可能性があるため、それはまったく良くありません
ld