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.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,633b377c6cd60b33 X-Google-Attributes: gid103376,public From: Mats Weber Subject: Re: Need Help Calling Ada From C Date: 1998/12/09 Message-ID: <366EBC93.B262EB49@elca-matrix.ch>#1/1 X-Deja-AN: 420503183 Content-Transfer-Encoding: 7bit References: X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: ELCA Matrix SA Mime-Version: 1.0 Reply-To: Mats.Weber@elca-matrix.ch Newsgroups: comp.lang.ada Date: 1998-12-09T00:00:00+00:00 List-Id: David Hoffman wrote: > $ gcc -c first_test.ads > $ gcc -c first_test.adb > $ gnatbind -n first_test.ali > $ gcc -c b_first_test.c > $ gcc -c fact.c > > I made it this far without any real trouble. Then I got this: > > $ gcc -o fact *.o You need to give gcc the library locations: gcc fact.o first_test.o b_first_test.c -L/usr/local/.../adalib/ -lgnat ^^^ exact location is system dependant.