comp.lang.ada
 help / color / mirror / Atom feed
* GNATLINKing objects that are not in the same directory
@ 2002-07-26 20:54 Karen Carron
  2002-07-27 13:21 ` Simon Wright
  0 siblings, 1 reply; 2+ messages in thread
From: Karen Carron @ 2002-07-26 20:54 UTC (permalink / raw)


I have not been able to get GNATLINK to work when the object files are
not in the same directory as the one I'm doing gnatlink from.

Here is an example of the command I'm using:

gnatlink -aO/home/xxx/dev/test ro.ali tmain.o -lF77 -lsunmath

tmain.o, which contains the main program whose source is written in
FORTRAN, is the file that is in another directory.  I'm not sure if it
makes a difference that it is the main program?  Anyway, I've tried
the -L, -l, and -I options also, at various places on the command line
(before ro.ali, btw. ro.ali and tmain.o, btw. tmain.o and -lF77, and
at the end).  I've also tried putting the path into a file and using
that with the 4 switches (-aO, -L, -l, -I) at all those places on the
command line.  I've also tried eliminating that switch, and setting
the environment variable ADA_OBJECTS_PATH to the search path.  None of
these things have worked.  I get the following error in all cases:

gcc: tmain.o: No such file or directory.

Of course, when I move the file into the directory I'm executing the
gnatlink command from, it works fine. I would like to figure out how
to do this because there is a much bigger system I need to work with. 
I have an example of how this is done in a make file, but I'd rather
use a script for this project.  Any ideas are welcome!

Thanks!



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-07-27 13:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-07-26 20:54 GNATLINKing objects that are not in the same directory Karen Carron
2002-07-27 13:21 ` Simon Wright

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox