From: "Marc A. Criley" <mcqada@earthlink.net>
Subject: Re: including C routines in Ada (newbie ask for assistance)
Date: Mon, 07 May 2001 13:01:34 GMT
Date: 2001-05-07T13:01:34+00:00 [thread overview]
Message-ID: <3AF68F86.7DA2B0C9@earthlink.net> (raw)
In-Reply-To: 3af67ee5.9539925@news.nl.uu.net
Noam Kloos wrote:
>
> Hi Once I had someone show me how to write routines in C and import
> them into Ada source with pragma Import(....);
> I know how to do a system call pragma import(C,C_System,"system"); but
> how do I access a c source file I have written myself?
If you're using GNAT, look in the GNAT User Guide in the section on
"Mixed Language Programming/Interfacing to C", and look at the
"use_of_import.adb" example in the GNAT examples directory.
Marc A. Criley
Senior Staff Engineer
Quadrus Corporation
www.quadruscorp.com
next prev parent reply other threads:[~2001-05-07 13:01 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-05-07 10:57 including C routines in Ada (newbie ask for assistance) Noam Kloos
2001-05-07 13:01 ` Marc A. Criley [this message]
2001-05-07 14:00 ` Marin David Condic
2001-05-07 17:39 ` David Starner
2001-05-07 21:17 ` Marin David Condic
2001-05-09 5:39 ` 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