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,3b06f2a3754e334e X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!postnews.google.com!y41g2000cwy.googlegroups.com!not-for-mail From: "Ludovic Brenta" Newsgroups: comp.lang.ada Subject: Re: GPS example fails to compile Date: 23 Jun 2006 01:18:36 -0700 Organization: http://groups.google.com Message-ID: <1151050716.409205.237490@y41g2000cwy.googlegroups.com> References: NNTP-Posting-Host: 212.123.3.11 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1151050721 19333 127.0.0.1 (23 Jun 2006 08:18:41 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 23 Jun 2006 08:18:41 +0000 (UTC) In-Reply-To: User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; SunOS sun4u; fr-FR; rv:1.6) Gecko/20040116,gzip(gfe),gzip(gfe) X-HTTP-Via: 1.1 KUUPXS02 Complaints-To: groups-abuse@google.com Injection-Info: y41g2000cwy.googlegroups.com; posting-host=212.123.3.11; posting-account=ZjNXewwAAADyBPkwI57_UcX8yKfXWOss Xref: g2news2.google.com comp.lang.ada:4917 Date: 2006-06-23T01:18:36-07:00 List-Id: Simon Wright a =E9crit : > "Xcriber51" writes: > > > That's fine, but how does the compiler know where the heck "matrixAlloc" > > is? I can't see the actual C file where the "matrixAlloc" and similar > > functions are located included or explicitly referred to in the > > "matrix_binding.ads" file, either. > > Hmm, nor do I. > > I know how to tell the linker to use the C .o's; Edit > Project > Properties > Switches > Ada Linker, at the bottom enter > > obj/matrix.o obj/matrix_utils.o > > and I can compile the C sources (select the file and Build > Compile > File) but what I don't see is how to get GPS to do it for itself. > > I have to admit to not reading the instructions, though. It's in the file scm.gpr: it says "for Languages use ("Ada", "C")" and the source directories containing both C and Ada source files. It seems that recent versions of gnatmake have built-in support for C as well as Ada. I haven't looked any further though. --=20 Ludovic Brenta.