comp.lang.ada
 help / color / mirror / Atom feed
* Questions about socket programming
@ 2014-12-24 13:43 Hubert
  2014-12-24 14:22 ` David Botton
                   ` (2 more replies)
  0 siblings, 3 replies; 16+ messages in thread
From: Hubert @ 2014-12-24 13:43 UTC (permalink / 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



^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2015-01-15 13:41 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-12-24 13:43 Questions about socket programming Hubert
2014-12-24 14:22 ` 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox