comp.lang.ada
 help / color / mirror / Atom feed
* Help! --Interfacing GNAT 3.05 to C libraries
@ 1997-05-08  0:00 Manuel A. Fernandez Fernandez
  1997-05-08  0:00 ` billimad
  1997-05-08  0:00 ` Jesus M. Gonzalez
  0 siblings, 2 replies; 6+ messages in thread
From: Manuel A. Fernandez Fernandez @ 1997-05-08  0:00 UTC (permalink / 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.




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

end of thread, other threads:[~1997-05-10  0:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-05-08  0:00 Help! --Interfacing GNAT 3.05 to C libraries Manuel A. Fernandez Fernandez
1997-05-08  0:00 ` billimad
1997-05-08  0:00 ` Jesus M. Gonzalez
1997-05-08  0:00   ` Geert Bosch
1997-05-09  0:00     ` Stephen Leake
1997-05-10  0:00       ` Geert Bosch

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