sockets & C++

Is there something special I need to do to use sockets with C++? All of my
calls to socket(), etc. come up as undefined, even though I’ve specified the
socket library. (A similar program in C links fine.)

Doing this all time time, and I don’t do anything special.

Do you have the latest TCP/IP. If my memory is right early
TCP/IP package didn’t have the extern “C” { } declaration
in the header files. Thus they were compile as C++ and because
of name mangling would not resolved.


“Frank Kolnick” <fkolnick@sentex.net> wrote in message
news:8v9c8u$e9q$1@inn.qnx.com

Is there something special I need to do to use sockets with C++? All of my
calls to socket(), etc. come up as undefined, even though I’ve specified
the
socket library. (A similar program in C links fine.)

Thanks, Mario.

Yeah, I eventually figured that out and hacked my TCP/IP header files. Time
to get an update :slight_smile:


“Mario Charest” <mcharest@zinformatic.com> wrote in message
news:8v9uf2$n5a$1@nntp.qnx.com

Doing this all time time, and I don’t do anything special.

Do you have the latest TCP/IP. If my memory is right early
TCP/IP package didn’t have the extern “C” { } declaration
in the header files. Thus they were compile as C++ and because
of name mangling would not resolved.


“Frank Kolnick” <> fkolnick@sentex.net> > wrote in message
news:8v9c8u$e9q$> 1@inn.qnx.com> …
Is there something special I need to do to use sockets with C++? All of
my
calls to socket(), etc. come up as undefined, even though I’ve specified
the
socket library. (A similar program in C links fine.)