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=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,4d30db6b9610a4b X-Google-Attributes: gid103376,public Path: controlnews3.google.com!news1.google.com!news.glorb.com!cyclone1.gnilink.net!gnilink.net!wn14feed!worldnet.att.net!attbi_s02.POSTED!not-for-mail From: "Steve" Newsgroups: comp.lang.ada References: <40a9231e$0$8417$a0ced6e1@news.skynet.be> Subject: Re: Link Problem X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 Message-ID: NNTP-Posting-Host: 24.21.42.251 X-Complaints-To: abuse@comcast.net X-Trace: attbi_s02 1084843078 24.21.42.251 (Tue, 18 May 2004 01:17:58 GMT) NNTP-Posting-Date: Tue, 18 May 2004 01:17:58 GMT Organization: Comcast Online Date: Tue, 18 May 2004 01:17:58 GMT Xref: controlnews3.google.com comp.lang.ada:655 Date: 2004-05-18T01:17:58+00:00 List-Id: As I recall the line needs to be something like: gnatmake io_receive -largs -lwsock32 Steve (The Duck) "Holger Ziegler" wrote in message news:40a9231e$0$8417$a0ced6e1@news.skynet.be... > I have a program which uses Win32 libraries. The program compiles and links > without problems using ObjectAda. When using GNAT compiling and binding work > fine, but linking creates the following error messages: > ./io_receive.o(.text+0x4635):io_receive.ada: undefined reference to > 'WSAStartup@8' > ./io_receive.o(.text+0x465c):io_receive.ada: undefined reference to > 'htons@4' > ./io_receive.o(.text+0x4711):io_receive.ada: undefined reference to > 'bind@12' > > > The process has been invoked with gnatmake io_receive.ada. > The system invokes > compilation: gcc -c -x ada io_receive.ada > binding: gnatbind -x io_receive.ali > linking: gnatlink io_receive.ali > > Can someone give me a hint what I'm missing? > > ---------- > Thanks, > > Holger > > holger at jeropia dot de > > >