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.
重複の可能性: Linuxで使用可能なfile.aにfile.libをビルドします
タイトルで述べたように、file.libからオブジェクトファイルを抽出することは可能です。次に、file.aを作成して、WindowsからLinuxに移植した移植されたfile.cppをコンパイルできるようにすることが重要です。
を使用lib /extractしてライブラリアンを呼び出し、ライブラリからオブジェクトファイルを抽出できます。.aただし、Windowsで生成されたオブジェクトファイルをアーカイブにパックして、Linuxで動作することを期待することはできないことに注意してください。プラットフォーム間で移植する場合は、ソースから再コンパイルする必要があります。
lib /extract
.a