delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/07/10/09:11:20

From: khan AT xraylith DOT wisc DOT edu (Mumit Khan)
Subject: Re: scratch that ntohs()
10 Jul 1998 09:11:20 -0700 :
Message-ID: <Pine.SUN.3.93.980710002016.16677A-100000.cygnus.gnu-win32@modi.xraylith.wisc.edu>
References: <000401bdab61$0c3d6710$732ddd80 AT cpc45115 DOT us DOT dg DOT com>
Mime-Version: 1.0
To: Peter Mularski <pmularski AT clariion DOT com>
Cc: GNU-Win32 <gnu-win32 AT cygnus DOT com>

On Thu, 9 Jul 1998, Peter Mularski wrote:

> Looked through the searchable archives and discovered the solution was to
> enclose the appropriate header in an 'extern "C"'. It's kind of a scary
> solution, but it seems to link okay. Thanks.

Scary? Don't worry -- this is the normal and the correct solution! All it 
means that is that the function has "C" linkage (as opposed to say C++ 
linkage which will typically mangle the names to encode various bits of 
info).

Mumit

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019