From: Hubert <herrdoktor@fumanchu.com>
Subject: Questions about socket programming
Date: Wed, 24 Dec 2014 05:43:21 -0800
Date: 2014-12-24T05:43:21-08:00 [thread overview]
Message-ID: <%pzmw.361295$Mq4.223465@fx25.iad> (raw)
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
next reply other threads:[~2014-12-24 13:43 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-24 13:43 Hubert [this message]
2014-12-24 14:22 ` Questions about socket programming David Botton
2014-12-25 3:59 ` Hubert
2014-12-27 1:21 ` Randy Brukardt
2014-12-27 9:48 ` Dmitry A. Kazakov
2014-12-28 0:44 ` David Botton
2014-12-29 12:52 ` Hubert
2014-12-24 17:02 ` Dmitry A. Kazakov
2014-12-25 4:02 ` Hubert
2014-12-25 4:14 ` Hubert
2015-01-12 20:33 ` David Thompson
2015-01-13 4:31 ` Hubert
2015-01-13 8:53 ` Dmitry A. Kazakov
2015-01-13 20:31 ` Hubert
2015-01-13 21:17 ` Dmitry A. Kazakov
2015-01-15 13:41 ` Kevin K
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox