comp.lang.ada
 help / color / mirror / Atom feed
From: Mats Weber <Mats.Weber@elca-matrix.ch>
Subject: Re: Need Help Calling Ada From C
Date: 1998/12/09
Date: 1998-12-09T00:00:00+00:00	[thread overview]
Message-ID: <366EBC93.B262EB49@elca-matrix.ch> (raw)
In-Reply-To: hoffman-ya02408000R0512981659060001@news.insync.net

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.




  reply	other threads:[~1998-12-09  0:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-12-05  0:00 Need Help Calling Ada From C David Hoffman
1998-12-09  0:00 ` Mats Weber [this message]
1998-12-12  0:00 ` Simon Wright
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox