comp.lang.ada
 help / color / mirror / Atom feed
From: Maciej Sobczak <see.my.homepage@gmail.com>
Subject: Re: ada import c function
Date: Tue, 28 Apr 2009 14:18:41 -0700 (PDT)
Date: 2009-04-28T14:18:41-07:00	[thread overview]
Message-ID: <cf07b997-f38f-4bf9-85bb-14089eb907e0@n7g2000prc.googlegroups.com> (raw)
In-Reply-To: 6568256f-39cd-4757-a630-fe6e4a9a82fc@l16g2000pra.googlegroups.com

On 28 Kwi, 22:45, "s. ashen" <spain.as...@gmail.com> wrote:

> does anyone know how to compile this program,

Try to make a regular library out of the C part and then just give it
to GNAT with -largs -lmylibrary options. It is cleaner than messing
with object files directly.

> i had tried many in many
> ways, but i can't do this.. always occurred some  errors.

It would be much easier for people here if you show what errors you
get. This way people would know how far you went and where exactly you
have failed.

--
Maciej Sobczak * www.msobczak.com * www.inspirel.com

Database Access Library for Ada: www.inspirel.com/soci-ada



  reply	other threads:[~2009-04-28 21:18 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-28 20:45 ada import c function s. ashen
2009-04-28 21:18 ` Maciej Sobczak [this message]
2009-04-28 21:40 ` sjw
2009-04-28 23:08 ` 459143320
2009-04-29 16:00   ` s. ashen
2009-04-29 19:03   ` sjw
2009-04-29 23:04     ` anon
2009-04-30 20:48       ` sjw
2009-04-30 21:32         ` Gautier
2009-04-30 23:42           ` linking with g++ (was: ada import c function) Björn Persson
2009-05-01  5:48             ` linking with g++ Gautier
replies disabled

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