This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: scratch that ntohs()


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@cygnus.com" with one line of text: "help".


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]