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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,3d76796391769899,start X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!o12g2000vba.googlegroups.com!not-for-mail From: zeta_no Newsgroups: comp.lang.ada Subject: GCC conflict on Ubuntu for mixed Ada/C++ project Date: Sun, 16 May 2010 20:29:17 -0700 (PDT) Organization: http://groups.google.com Message-ID: <41d3829e-286d-4894-9140-31343bfa75ac@o12g2000vba.googlegroups.com> NNTP-Posting-Host: 174.138.203.117 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1274066958 7289 127.0.0.1 (17 May 2010 03:29:18 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 17 May 2010 03:29:18 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: o12g2000vba.googlegroups.com; posting-host=174.138.203.117; posting-account=_PzQ6woAAACMmOTJ1acimpQRdkpIwcWU User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.38 Safari/533.4,gzip(gfe) Xref: g2news2.google.com comp.lang.ada:11672 Date: 2010-05-16T20:29:17-07:00 List-Id: Hi to all, With the distribution of GNAT GPL form Adacore Libre comes some code examples like "ada_cpp" that presents mixed Ada/C++ projetcs. My problem is the following: In GPS, for the project to build, we need GPRBUILD which uses GCC and the -gnat05 option. Well, using GPRBUILD, the ouput of a BUILD ALL tells me that GCC 4.4 installed by Ubuntu was triggered, not GCC 4.3 coming with the GNAT distro. How do I tell GPS and GPRBUILD to use the good GCC? The problem is on the Ubuntu side or GPRBUILD? We have to admit that my setup is ugly. I use GPS and GPRBUILD from Adacore, but GNAT from Ubuntu. That's not all. I don't know why, but by using GNAT from Ubuntu, the second example from ada_cpp, animals.gpr, does not compile at all. I get the following error mesage: cannot import abstract subprogram "Number_Of_Teeth" declared at line 5. cannot imp... If someone could help me with my problem of GNAT versioning to resolve the good use of GCC, I would really appreciate. Just to confirm, I did exported /usr/gnat/bin into my PATH env. variable. Thanks in advance, Olivier Henley