Ada: gnat gprbuild How to link in libraries?

假如想象 提交于 2019-12-06 05:23:17
persan

Or even better:

Project my_library is
  For externally_built use "true";
  For library_dir use "/where/ever";
  For library_name use "mylibname";
  For source_dirs use (); -- no sources.
  For library_kind use "static";
  -- if it is a static lib .a

  -- for library_kind use "dynamic";
  -- if it is an so.
End my_library;

And in the application project. With "my_library.gpr";

Within the main project file,

package Linker is
   for Default_Switches ("Ada") use ("-L/where/ever", "-lbar");
end Linker;
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!