Re: help with include and library files in GPS



Ludovic Brenta <ludovic@xxxxxxxxxxxxxxxxxx> writes:

In your project file, reference the exact location of libgtkada.a,
like so:

with "/usr/share/ada/adainclude/gtkada.gpr";
project Blah is
...
package Linker is
for Default_Switches ("Ada") use ("/usr/lib/libgtkada.a");
end Linker;
end Blah;

(a) the environment variable ADA_PROJECT_PATH tells where to find .gpr
files

(b) you could make your gtkada.gpr define a symbol for the library
path,
GTKADALIB := ("/usr/lib/libgtkada.a");
and then
for Default_Switches ("Ada") use gtkada.GTKADALIB;
.