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-Thread: 103376,8ef68c7470f8079 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews2.google.com!not-for-mail From: dan.r.mcleran@seagate.com (Dan McLeran) Newsgroups: comp.lang.ada Subject: Re: glade-2: Error when generating source files Date: 14 Jul 2004 06:01:08 -0700 Organization: http://groups.google.com Message-ID: <19b0e504.0407140501.2288527f@posting.google.com> References: <19b0e504.0407110556.19544736@posting.google.com> NNTP-Posting-Host: 192.55.20.36 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1089810068 13538 127.0.0.1 (14 Jul 2004 13:01:08 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 14 Jul 2004 13:01:08 +0000 (UTC) Xref: g2news1.google.com comp.lang.ada:2171 Date: 2004-07-14T06:01:08-07:00 List-Id: > Calling gate directly works. It seems that a temporary file all.ada > is generated first, and this file is then gnatchopped into single > compilation units. > > But now, when gnatmaking the program with the generated files, > I get the message > > ld: unrecognized option 'C:\PROGRA~1\Ada\GNAT\lib\gcc-lib\pentium-mingw32msv\2.8.1\adalib\libgnat.a > > Franz It sounds like you are passing gnatmake an -ld and it doesn't know what that means. I think you need to pass it -l with the path to libgnat.a appended. By the way, I would recommend having any libs you need to link reside on your file system where the path doesn't contain a space (i.e. it looks like you have your gnat stuff installed under Program Files. Gnatmake may not like to deal with a space in between 'Program' and 'Files'.