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=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,6f1f065a3ff6bcf0 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2004-01-29 09:14:12 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!proxad.net!usenet-fr.net!enst.fr!melchior!cuivre.fr.eu.org!melchior.frmug.org!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: Import C... Works!! but how does it work :/ Date: 29 Jan 2004 12:12:27 -0500 Organization: Cuivre, Argent, Or Message-ID: References: <9jLRb.2975221$uj6.7642415@telenews.teleline.es> NNTP-Posting-Host: lovelace.ada-france.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: melchior.cuivre.fr.eu.org 1075396376 91413 80.67.180.195 (29 Jan 2004 17:12:56 GMT) X-Complaints-To: usenet@melchior.cuivre.fr.eu.org NNTP-Posting-Date: Thu, 29 Jan 2004 17:12:56 +0000 (UTC) To: comp.lang.ada@ada-france.org Return-Path: In-Reply-To: <9jLRb.2975221$uj6.7642415@telenews.teleline.es> User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 X-Virus-Scanned: by amavisd-new-20030616-p5 (Debian) at ada-france.org X-BeenThere: comp.lang.ada@ada-france.org X-Mailman-Version: 2.1.3 Precedence: list List-Id: Gateway to the comp.lang.ada Usenet newsgroup List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Xref: archiver1.google.com comp.lang.ada:5045 Date: 2004-01-29T12:12:27-05:00 "Nando" writes: > > > > Ok!! I need this names if I want everything works. Others have pointed out your naming conflict. > In "about" of my compiler apears: AdaGuide v. 6.60.2 When I compile > my project, I can read GNATMAKE 3.13p This is a very old compiler. The current version is 3.15p. What operating system are you on? > Third, I go to the line command (run -> cmd), I go to the directory where > are my files keeped and I write the next sentence: > gcc -c u_prueba.c You need to find a way to run make from AdaGide (I don't use it, so I don't know how to do that). Then you need to set up a makefile that will compile the C code by calling gcc directly, and the Ada code by calling gnatmake. Then the makefile needs to link the C code together with the Ada code by passing arguments to gnatmake. Or, you can switch to GPS, which will let you define a project that includes both Ada and C, and compile and link everything for you. Hope this helps. -- -- Stephe