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.4 required=5.0 tests=AC_FROM_MANY_DOTS,BAYES_00 autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,24c886836d1e1ef8 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-08-23 14:35:02 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!newsfeeds.belnet.be!news.belnet.be!psinet-eu-nl!psiuk-p4!uknet!psiuk-n!news.pace.co.uk!nh.pace.co.uk!not-for-mail From: "Marin David Condic" Newsgroups: comp.lang.ada Subject: Re: My Gnat is rusty - link error Date: Thu, 23 Aug 2001 17:27:14 -0400 Organization: Posted on a server owned by Pace Micro Technology plc Message-ID: <9m3sfj$g48$1@nh.pace.co.uk> References: <3B8571D0.64268D43@home.com> NNTP-Posting-Host: dhcp-200-133.miami.pace.co.uk X-Trace: nh.pace.co.uk 998602035 16520 136.170.200.133 (23 Aug 2001 21:27:15 GMT) X-Complaints-To: newsmaster@news.cam.pace.co.uk NNTP-Posting-Date: 23 Aug 2001 21:27:15 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Xref: archiver1.google.com comp.lang.ada:12361 Date: 2001-08-23T21:27:15+00:00 List-Id: I believe you have to specify either a linker option or put the following pragma into your code somewhere: pragma Linker_Options ("-lwsock32") ; Putting it in the code will make it harder to forget. :-) Hope this helps. MDC -- Marin David Condic Senior Software Engineer Pace Micro Technology Americas www.pacemicro.com Enabling the digital revolution e-Mail: marin.condic@pacemicro.com Web: http://www.mcondic.com/ "Thomas Kerstan" wrote in message news:3B8571D0.64268D43@home.com... > I have GNAT 3.12 on a windows 95 machine. (the machine also > has GNAT 3.01a but I believe that should be irrelevant) > > I am able to generate executables for the samples that are > included in the win32ada/samples directory but when I try > to compile/bind/link (using gnatmake) some code that uses > the win32.winsock binding for sockets the compile and bind > complete without errors, but the gnatlink gives > undefined reference to 'WSAStartup@8' > undefined reference to ... > messages for all of the winsock routines. > > any help would be appreciated, > thanks, > > Tom > kerstan@home.com