comp.lang.ada
 help / color / mirror / Atom feed
From: Patrick <patrick@spellingbeewinnars.org>
Subject: Re: help bridging C and Ada
Date: Mon, 26 Mar 2012 19:44:02 -0700 (PDT)
Date: 2012-03-26T19:44:02-07:00	[thread overview]
Message-ID: <5c736b58-398b-4b1e-9e9b-1d1a2b78c11b@w5g2000vbv.googlegroups.com> (raw)
In-Reply-To: jkqp42$vuf$1@dont-email.me

Hi Brian, Hi J-P, Hi Marc, Hi Stephe

Thanks for all your feedback. Yes I really don't want to write a full
binding, especially as I am new to ada.

It's my understanding that a C function ends up as a macro in ASM
during the compilation process and it is even possible for some people
to call them in executables without having had the original source
code.

It's my understanding that foreign function interfaces work much the
same way only it is easier as there is source code involved.

I wrote a very simple C application the uses gtk and gstreamer. I
split it into two even simpler applications. I have edited the results
from fdump slim so that I am only trying to call one C function. It
won't compile as it wants other spec files for gtk.

This is quite advanced for me. Would I be better off sticking to
bindings that had no external dependencies? Is there a way to call one
specific function without becoming entangled with the rest of the C
application?


Thanks again Brian. I at least 5 errors the first time I tried to
compile the gstreamer binding and after I commented out the
problematic "withs" I had more and more, I'm really bombing this.

Thanks for sharing your tools, J-P, AdaDep looks interesting.

Thanks again to everyone. Sorry if I am clutter the list with my
newbie stupidity.




  reply	other threads:[~2012-03-27  2:44 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-25 13:37 help bridging C and Ada Patrick
2012-03-25 14:52 ` Patrick
2012-03-25 17:00   ` Simon Wright
2012-03-25 17:47     ` Patrick
2012-03-26 13:45   ` Stephen Leake
2012-03-26 10:03 ` Brian Drummond
2012-03-26 12:05   ` J-P. Rosen
2012-03-26 22:03     ` Brian Drummond
2012-03-27  2:44       ` Patrick [this message]
2012-03-26 12:49   ` Marc C
2012-03-27 18:09 ` Shark8
2012-03-28  0:19   ` Patrick
replies disabled

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