Ada: gnat gprbuild How to link in libraries?

后端 未结 2 1689
陌清茗
陌清茗 2021-01-14 06:31

In this multi-language GPRBuild project I\'m working on, I have some c++ library files (*.a) I need to link into my executable. Is there an gpr attribute to tell it what to

2条回答
  •  独厮守ぢ
    2021-01-14 07:12

    Within the main project file,

    package Linker is
       for Default_Switches ("Ada") use ("-L/where/ever", "-lbar");
    end Linker;
    

提交回复
热议问题