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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,1e320108e0f97d38,start X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!11g2000yqr.googlegroups.com!not-for-mail From: resander Newsgroups: comp.lang.ada Subject: Error when running gcc from GPS Date: Sat, 24 Apr 2010 04:03:12 -0700 (PDT) Organization: http://groups.google.com Message-ID: <1186698a-854c-44cd-9111-eeae825015dd@11g2000yqr.googlegroups.com> NNTP-Posting-Host: 82.5.106.54 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1272106992 28654 127.0.0.1 (24 Apr 2010 11:03:12 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sat, 24 Apr 2010 11:03:12 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: 11g2000yqr.googlegroups.com; posting-host=82.5.106.54; posting-account=5kIDUAkAAACEMLy16tM5OtzZtznE-9-5 User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.9.0.19) Gecko/2010040118 Ubuntu/8.10 (intrepid) Firefox/3.0.19,gzip(gfe) Xref: g2news1.google.com comp.lang.ada:10188 Date: 2010-04-24T04:03:12-07:00 List-Id: Using GPS GPL Edition. GPS 4.2.1 (20080115) hosted on i686-pc-linux-gnu GNAT 4.3.2 I have only just started using GPS. I created a directory Adaproj in the home directory and requested the default project to be put there. It now contains the files main.adb, test.c and default.gpr. The file main.adb compiles, links and runs without problems. It is a small self-contained test program. The second file test.c does not compile and the following error message appears: 'Could not locate executable on path: gprbuild' I have ticked the checkbox for language C in the Languages tab in 'Edit Project Properties on the Project menu. I am guessing that 'executable' refers to gcc. I did a search on gcc and found these: /usr/bin/gcc -- linked to /usr/bin/gcc-4.3 /usr/bin/gnatgcc -- linked to /usr/bin/gcc-4.3 /home/ken/AdaGPL/gnat-2008-i686-gnu-linux-libc2.3-bin/bin/gcc I also searched on gprbuild and found it is available in /home/ken/AdaGPL/gnat-2008-i686-gnu-linux-libc2.3-bin/bin How do I make GPS compile C files? P.S. default.gpr in Adaproj contains: project Default is type Mode_Type is ("Production", "Debug"); Mode : Mode_Type := external ("BUILD", "Debug"); package Ide is for Vcs_Kind use "CVS"; end Ide; package Compiler is case Mode is when "Debug" => for Default_Switches ("ada") use ("-g", "-gnato", "-fstack- check", "-gnatVa"); when "Production" => for Default_Switches ("ada") use ("-gnatp", "-O2"); end case; end Compiler; case Mode is when "Debug" => for Languages use ("Ada", "C"); when "Production" => end case; end Default;