* GNAT & POSIX
@ 1995-02-27 0:21 mcriley on BIX
0 siblings, 0 replies; 2+ messages in thread
From: mcriley on BIX @ 1995-02-27 0:21 UTC (permalink / raw)
I've got version 2.03 of GNAT for DOS and I can't get GNATBL
to link my test program.
To test out linking C code with GNAT, I wrote a package spec
that declares the C routines, then used pragma Import to bring
them in. Then I have a main program that calls these routines.
When using GNATBL to link I get an abundance of 'Undefined
references', _not_ referring to the C routines I'm linking, those
are resoved quite nicely, but of a whole slew of POSIX threads
functions. These are all coming out of Interfaces.C.POSIX_<stuff>.
In no way, shape, or form, am I knowingly interacting with POSIX,
and I'd rather keep it that way if possible! It seems that these
functions are brought in as a side-effect of including a
pragma Import(C, ...).
I've been wrestling with this for several days and any assistance
would be most welcome. Thanks.
Marc A. Criley
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: GNAT & POSIX
[not found] <mcriley.793844483@bix.com>
@ 1995-03-05 6:52 ` Kenneth Almquist
0 siblings, 0 replies; 2+ messages in thread
From: Kenneth Almquist @ 1995-03-05 6:52 UTC (permalink / raw)
mcriley@BIX.com wrote:
> When using GNATBL to link I get an abundance of 'Undefined
> references', _not_ referring to the C routines I'm linking, those
> are resoved quite nicely, but of a whole slew of POSIX threads
> functions. These are all coming out of Interfaces.C.POSIX_<stuff>.
This sounds like you are using Ada tasks on a platform that doesn't
support them. The run time system for GNAT (named GNARL) includes a
bunch of tasking code which is loaded if your program uses any of the
tasking features of Ada (including the "delay" statement). Unless
you are running the OS/2 version of GNAT, the tasking code uses POSIX
threads, and will generate "Undefined references" on platforms which
don't support POSIX threads.
Kenneth Almquist
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1995-03-05 6:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <mcriley.793844483@bix.com>
1995-03-05 6:52 ` GNAT & POSIX Kenneth Almquist
1995-02-27 0:21 mcriley on BIX
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox