Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!elroy!jpl-devvax!smythsun!david From: david@smythsun.JPL.NASA.GOV (David Smyth) Newsgroups: comp.lang.c++ Subject: Re: client/servers and C++ Message-ID: <4647@jpl-devvax.JPL.NASA.GOV> Date: 23 Mar 89 21:26:16 GMT References: <1990006@hpctdls.HP.COM> Sender: news@jpl-devvax.JPL.NASA.GOV Reply-To: david@smythsun.JPL.NASA.GOV (David Smyth) Organization: Jet Propulsion Laboratory, Pasadena, CA. Lines: 16 In article <1990006@hpctdls.HP.COM> jeff@hpctdls.HP.COM (Jeff Hughes) writes: > >It appears to me that the current version of C++ does not support >system calls such as bind, accept, socket, etc. When I try to compile >I get errors saying that these functions are undefined. If you are using a "version 2" compliant C++ compiler, try this: extern "C" { #include < ... > // system call decls #include < ... > // and other C function decls ... etc ... }; This keeps C++ from munging the names of external C functions, including system calls.