comp.lang.ada
 help / color / mirror / Atom feed
From: "Samuel T. Harris" <sam_harris@hso.link.com>
Subject: Re: Apex Socket linking
Date: 1999/06/15
Date: 1999-06-15T00:00:00+00:00	[thread overview]
Message-ID: <3766B8FC.B2972552@hso.link.com> (raw)
In-Reply-To: 3766A146.79EEE990@res.raytheon.com

askeya wrote:
> 
> Apex Ada95 question:
> 
> I have a very simple program to open a socket.  I "with"ed in
> Unix_Network_Operations and the supporting specs.  The program compiles
> with no problems but I get a link error because the linker can not find
> "socket".  The "socket" man page says to link in -lxnet.  How can I do
> this in Apex?
> 
> Model: sun4_solaris2.ada95.thread.3.0.0.rel
> 
> I know this is not an Apex group, but this is the closest I can find.
> 
> Thanx.
> --
> ---------------------------------------------------
> |                 Andy Askey                      |
> |              Software Engineer                  |
> |           Raytheon Systems Company              |
> |   670 Discovery Drive, Huntsville, AL  35806    |
> |   Phone: (256) 971-2367  Fax: (256) 971-2306    |
> |        andrew_j_askey@res.raytheon.com          |
> ---------------------------------------------------

Add -lxnet to your NON_ADA_LINKAGE switch of the view
with the main program being linked.

You can also try using pragma Link_With in the main
programs source code.

-- 
Samuel T. Harris, Principal Engineer
Raytheon, Scientific and Technical Systems
"If you can make it, We can fake it!"




      reply	other threads:[~1999-06-15  0:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-06-15  0:00 Apex Socket linking askeya
1999-06-15  0:00 ` Samuel T. Harris [this message]
replies disabled

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