From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=BAYES_05,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,566432d15b51e86c X-Google-Attributes: gid103376,public From: "Samuel T. Harris" Subject: Re: Apex Socket linking Date: 1999/06/15 Message-ID: <3766B8FC.B2972552@hso.link.com>#1/1 X-Deja-AN: 489988982 Content-Transfer-Encoding: 7bit References: <3766A146.79EEE990@res.raytheon.com> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: Raytheon Training Inc. Mime-Version: 1.0 Newsgroups: comp.lang.ada Date: 1999-06-15T00:00:00+00:00 List-Id: 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!"