Mail Archives: djgpp/1999/11/03/22:05:10
John Bauman wrote:
>
> Uhh, idea, put an
> extern "C" {
> ...
> }
> (I think that's what it is) block around all the declares in the header.
> John S. Fine wrote in message <381F7D9B DOT 541B AT erols DOT com>...
. . .
> > All the WINSOCK symbols come up undefined. I used OBJDUMP
> >to find out why and discovered that in the libwsock32.a that
> >I found and the one I built using makelib, all the names
> >are unmangled "C" names. In all my .o files, all those
> >names are mangled C++ names.
I had already tried putting extern "C" { around the #include
of winsock.h. That had no effect. I haven't a clue why not.
Now I've tried putting extern "C" inside winsock.h in front
of every declaration for an entry point my program uses. That
gets rid of the link time errors, but when I run the program,
none of the WINSOCK functions work.
--
http://www.erols.com/johnfine/
http://www.geocities.com/SiliconValley/Peaks/8600/
- Raw text -