comp.lang.ada
 help / color / mirror / Atom feed
From: "Manuel A. Fernandez Fernandez" <mfernan@laurel.datsi.fi.upm.es>
Subject: Help! --Interfacing GNAT 3.05 to C libraries
Date: 1997/05/08
Date: 1997-05-08T00:00:00+00:00	[thread overview]
Message-ID: <33719153.6BCC@laurel.datsi.fi.upm.es> (raw)


I have been trying to use both Ada 95 with C libraries, like 
	Xm from motif, on a Linux box.

	Interfacing to C is simple

	.adb
	procedure Foo;
	pragma Import(C, Foo, "foo");

	.c

	void foo(void){


	gcc -c ada-program.adb ---> ada-program.ali

	gcc -c c-program.c  ------> c-program.o

	gnatbl name.ali name.o

	but how do I link with motif, or whatever?


	what do I have to tell gnat to do that and get my executable?


	thanks in advance.

	Manuel Fernandez.




             reply	other threads:[~1997-05-08  0:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-05-08  0:00 Manuel A. Fernandez Fernandez [this message]
1997-05-08  0:00 ` Help! --Interfacing GNAT 3.05 to C libraries Jesus M. Gonzalez
1997-05-08  0:00   ` Geert Bosch
1997-05-09  0:00     ` Stephen Leake
1997-05-10  0:00       ` Geert Bosch
1997-05-08  0:00 ` billimad
replies disabled

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