comp.lang.ada
 help / color / mirror / Atom feed
* Re:Compiling, binding, and linking an Ada prog. interfaced with C
@ 1998-07-27  0:00 You4818
       [not found] ` <6pi57h$k1h$1@nnrp1.dejanews.com>
  1998-07-28  0:00 ` Dr Richard A. O'Keefe
  0 siblings, 2 replies; 12+ messages in thread
From: You4818 @ 1998-07-27  0:00 UTC (permalink / raw)


Hi

I am trying to interface an Ada program to C, such that the main
program is in Ada and some entities are being imported from a 
C header file (e.g. constant variables).

For example, consider the following 

C_File.h  :  #define  Max_Val 100


Ada_File.adb : with Interfaces.C ;
				procedure Ada_File is
				MAX_VAL : Integer ;
				pragma Import(C,MAX_VAL,"Max_Val") ;

				begin
					...... process MAX_VAL ;
				end Ada_File ;


How do I compile, bind and link the above files (where Ada_File
is the main program).


Thanks in advance
Samir







^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~1998-08-04  0:00 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-07-27  0:00 Re:Compiling, binding, and linking an Ada prog. interfaced with C You4818
     [not found] ` <6pi57h$k1h$1@nnrp1.dejanews.com>
1998-07-28  0:00   ` Compiling, " Ronald Ali
1998-07-28  0:00 ` Dr Richard A. O'Keefe
1998-07-29  0:00   ` Fergus Henderson
1998-07-30  0:00     ` Robert I. Eachus
1998-08-01  0:00       ` Robert Dewar
1998-08-02  0:00         ` Fergus Henderson
1998-08-04  0:00           ` Robert Dewar
1998-08-04  0:00             ` Fergus Henderson
1998-08-03  0:00         ` David Coote
1998-08-03  0:00           ` tedennison
1998-08-02  0:00       ` Fergus Henderson

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