comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: Using Gnat.Sockets in a Windows DLL
Date: Thu, 26 Nov 2015 09:39:11 +0100
Date: 2015-11-26T09:39:11+01:00	[thread overview]
Message-ID: <10uy7h6rijkr9.1fnxk46ocbbhp$.dlg@40tude.net> (raw)
In-Reply-To: 220ee60f-3290-43d7-a097-cf90380d8bae@googlegroups.com

On Wed, 25 Nov 2015 23:56:55 -0800 (PST), ahlan@marriott.org wrote:

> We have windows programs and DLLs that use the Windows WinSock API directly.
> I recognize many of them as being in WS2_32.dll - which GprBuild finds
> when we build our programs (its in Windows/System32)

Yes

> Except that the names are not quite right so I suspect that this is the
> root cause of the problem.

The names are right, WinSock2 has stdcall conventions and names.

> Has anyone any idea why a build of a DLL should behave differently to a
> build of a program with respect to name mangling?

It should not. You link to libws2_32.a import library, which comes with
GNAT distribution.

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de

  reply	other threads:[~2015-11-26  8:39 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-26  7:56 Using Gnat.Sockets in a Windows DLL ahlan
2015-11-26  8:39 ` Dmitry A. Kazakov [this message]
2015-12-08  7:43 ` ahlan
2015-12-08  9:52   ` Dmitry A. Kazakov
2015-12-09  7:20 ` ahlan
2015-12-09  9:20   ` Dmitry A. Kazakov
2015-12-09 12:02 ` ahlan
2015-12-09 12:33   ` Dmitry A. Kazakov
2015-12-09 15:06 ` ahlan
2015-12-09 15:58   ` Dmitry A. Kazakov
2015-12-09 19:11   ` Simon Wright
2015-12-11 17:53 ` ahlan
2015-12-12 12:47   ` Simon Wright
2015-12-12 19:44     ` ahlan
2015-12-12 20:38       ` Simon Wright
2015-12-24 14:46 ` ahlan
2015-12-25 11:09   ` Simon Wright
2016-01-13 20:25 ` ahlan.marriott
2016-04-20 17:10   ` Dmitry A. Kazakov
2016-04-23  9:24     ` ahlan.marriott
replies disabled

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