comp.lang.ada
 help / color / mirror / Atom feed
From: kcarron@belcan.com (Karen Carron)
Subject: GNATLINKing objects that are not in the same directory
Date: 26 Jul 2002 13:54:08 -0700
Date: 2002-07-26T20:54:08+00:00	[thread overview]
Message-ID: <5489a352.0207261254.b80d41e@posting.google.com> (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!



             reply	other threads:[~2002-07-26 20:54 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-26 20:54 Karen Carron [this message]
2002-07-27 13:21 ` GNATLINKing objects that are not in the same directory Simon Wright
replies disabled

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