Xref: utzoo comp.lang.c++:10528 comp.sys.hp:6961 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!orion.oac.uci.edu!cedman From: cedman@golem.ps.uci.edu (Carl Edman) Newsgroups: comp.lang.c++,comp.sys.hp Subject: Re: BSD-style sockets with g++? Message-ID: Date: 25 Nov 90 17:32:28 GMT References: Distribution: comp Organization: University of California, Irvine, USA. Lines: 31 Nntp-Posting-Host: lynx.ps.uci.edu In-reply-to: magi@polaris.utu.fi's message of 23 Nov 90 18:21:25 GMT In article magi@polaris.utu.fi (Marko Gronroos) writes: I have a big problem: I want to use BSD internet sockets from my program, but the normal header files are not compatible with g++. First I tried to change the headers, but it would have been a too big project.. I have also tried to first compile the socket-handling module with gcc and the client program with g++, and then link them together, but the object files don't seem to be compatible. I`m stuck. Any suggestions on either using the default headers or linking? (have I missed some important switch while compiling/linking?) Unfortunately you do not mention which UNIX you use. If it is an HPUX system, be happy and rejoice. The first thing that I did after I makeing g++ run under HPUX was to "objectify" sockets and I've got a nice little socket object lying around somewhere. Available upon request from author (If I can ever again dig out that old module) BTW, you DO have to modify the header files (at least the g++ headerfiles extensively) Carl Edman Theorectical Physicist,N.:A physicist whose | Send mail existence is postulated, to make the numbers | to balance but who is never actually observed | cedman@golem.ps.uci.edu in the laboratory. | edmanc@uciph0.ps.uci.edu