Ada: gnat gprbuild How to link in libraries?
问题 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 link in or anyway to pass -l -L switches to the linker? 回答1: 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