[nanomsg] Re: NNG on Windows

  • From: "Garrett D'Amore" <garrett@xxxxxxxxxx>
  • To: "nanomsg@xxxxxxxxxxxxx" <nanomsg@xxxxxxxxxxxxx>
  • Date: Mon, 23 Jan 2017 09:44:55 -0800

On Mon, Jan 23, 2017 at 6:02 AM, Joe Pasquariello <joep@xxxxxxxxxx> wrote:

Hello,

I'm taking a shot at building NNG for Windows with Embarcardero (formerly
Borland) C++. The old BCC32 is pre-C99, and I was able to build with just a
few changes, including the C99-style structure inits. The latest release
has CLANG for both WIN32 and WIN64, and I will go in that direction. Two
issues:

In socket.c, there are two references to ENOTSUP. Should they be
NNG_ENOTSUP?


Yes.  I’ve already found and fixed that as a consequence of other changes
(removing errno.h from the top-level header because it isn’t needed.)  I’ll
be pushing that change later today, along with a bunch of others intended
to expand nanomsg API compatibility.

After building library, attempting to build a trivial application led to
linker error: Unresolved external '_sockaddr_size'. Is that function
defined for Windows?


That seems strange.  I don’t think I have any explicit references to that
symbol in any of my code.  Probably this is caused by an incompatibility
between the headers you are using (from your compiler perhaps?) and the
underlying win32 libraries.

  - Garrett


Joe
--
Joe Pasquariello
joep@xxxxxxxxxx
510-665-4355 <(510)%20665-4355>

Other related posts: