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 autolearn=unavailable autolearn_force=no version=3.4.4 Path: border1.nntp.dca1.giganews.com!nntp.giganews.com!news.glorb.com!peer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post02.iad.highwinds-media.com!fx25.iad.POSTED!not-for-mail From: Hubert User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Questions about socket programming Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Antivirus: avast! (VPS 141224-0, 12/23/2014), Outbound message X-Antivirus-Status: Clean Message-ID: <%pzmw.361295$Mq4.223465@fx25.iad> X-Complaints-To: abuse@newsdemon.com NNTP-Posting-Date: Wed, 24 Dec 2014 13:43:23 UTC Organization: http://www.NewsDemon.com Date: Wed, 24 Dec 2014 05:43:21 -0800 X-Received-Bytes: 2068 X-Received-Body-CRC: 3301874129 Xref: number.nntp.giganews.com comp.lang.ada:191525 Date: 2014-12-24T05:43:21-08:00 List-Id: Hello, I want to write a small telnet server as an exercise and also because I need this functionality elsewhere. I seem to remember that I read in this newsgroup somewhere some negative opinions about Gnatsockets, but I can't remember where and what it was about. So I wonder, should I use Gnatsocket or are there any problems? Should I rather interface with C and use the C socket implementation directly? I must admit that I tried this today and didn't get very far, because I got linker errors like these: Berkley_Socket_Interface_C.c:47: undefined reference to `_imp__getaddrinfo@16' Berkley_Socket_Interface_C.c:48: undefined reference to `gai_strerrorA' Berkley_Socket_Interface_C.c:49: undefined reference to `_imp__WSACleanup@0' collect2.exe: error: ld returned 1 exit status and I am out of ideas there. I tried to add to the C linker the following switches: -lwsock32 -lws2_32 but without luck. I found contradictory information what the correct library name is for mingw, so I tried both but apparantly both are wrong, or the respective libraries are not delivered with Adacore Libre. I should had that I don't have Mingw installed, just what comes with Adacore. Thanks for any help --- This email has been checked for viruses by Avast antivirus software. http://www.avast.com