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.
非常に単純なADAコードをコンパイルしようとしています。すべてが魅力のように機能しますが、1 台のコンピューターでは実行可能ファイルがlibgnatに動的にリンクされていますが、もう 1 台のコンピューターでは静的にリンクされています。どちらの場合も、gnatmakeツールを使用します。
なぜそれが起こっているのですか?GNAT にライブラリを動的にリンクさせる方法を知っていますか?
それがバインダーの-sharedスイッチになります。プロジェクト ファイルを使用している場合は、次を使用できます。
-shared
project Foo is ... package Binder is for Switches ("Ada") use ("-shared"); end Binder;
フーを終了します。