From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,6fa97b783a754ac4,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-07-26 13:54:09 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: kcarron@belcan.com (Karen Carron) Newsgroups: comp.lang.ada Subject: GNATLINKing objects that are not in the same directory Date: 26 Jul 2002 13:54:08 -0700 Organization: http://groups.google.com/ Message-ID: <5489a352.0207261254.b80d41e@posting.google.com> NNTP-Posting-Host: 205.133.202.67 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1027716848 18650 127.0.0.1 (26 Jul 2002 20:54:08 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 26 Jul 2002 20:54:08 GMT Xref: archiver1.google.com comp.lang.ada:27426 Date: 2002-07-26T20:54:08+00:00 List-Id: 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!