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.3 required=5.0 tests=BAYES_00,INVALID_MSGID
autolearn=no autolearn_force=no version=3.4.4
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 103376,f94d6c9f97829e0c
X-Google-Attributes: gid103376,public
From: Pascal Obry
Subject: Re: [Fwd: Compile with C code...]
Date: 2000/10/19
Message-ID: #1/1
X-Deja-AN: 683489938
References: <39EEF80B.1242805C@cepsz.unizar.es> <8sn13s$1vt$1@nnrp1.deja.com>
<39EF0DB2.35CED1C5@cepsz.unizar.es>
Content-Type: text/plain; charset=us-ascii
X-Complaints-To: abuse@wanadoo.fr
X-Trace: wanadoo.fr 971979408 17617 193.249.43.52 (19 Oct 2000 18:16:48 GMT)
Organization: Home - http://perso.wanadoo.fr/pascal.obry
Mime-Version: 1.0
User-Agent: Gnus/5.0807 (Gnus v5.8.7) Emacs/20.7
NNTP-Posting-Date: 19 Oct 2000 18:16:48 GMT
Newsgroups: comp.lang.ada
Date: 2000-10-19T18:16:48+00:00
List-Id:
Alejandro Villanueva <190921@cepsz.unizar.es> writes:
> Well, these are the steps I perform:
> gcc -c hola.adb
> gnatbind -x hola.ali
> gcc main.c b_hola.o hola.o
This can't work. You try to build an executable containing Ada code without
the GNAT runtime :) :)
Try something like:
$ gcc -c main.c
$ gnatmake hola -largs main.o
Pascal.
--
--|------------------------------------------------------
--| Pascal Obry Team-Ada Member
--| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE
--|------------------------------------------------------
--| http://perso.wanadoo.fr/pascal.obry
--|
--| "The best way to travel is by means of imagination"