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,XPRIO autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,4d30db6b9610a4b,start X-Google-Attributes: gid103376,public Path: controlnews3.google.com!news1.google.com!news.glorb.com!fr.ip.ndsoftware.net!proxad.net!proxad.net!skynet.be!newspost001!tjb!not-for-mail From: "Holger Ziegler" Newsgroups: comp.lang.ada Subject: Link Problem Date: Mon, 17 May 2004 22:40:19 +0200 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Message-ID: <40a9231e$0$8417$a0ced6e1@news.skynet.be> Organization: -= Belgacom Usenet Service =- NNTP-Posting-Host: 81.242.131.173 X-Trace: 1084826399 newsread002.isp.belgacom.be 8417 81.242.131.173:10416 X-Complaints-To: usenet-abuse@skynet.be Xref: controlnews3.google.com comp.lang.ada:649 Date: 2004-05-17T22:40:19+02:00 List-Id: 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