[comp.sys.hp] BSD-style sockets with g++?

cedman@golem.ps.uci.edu (Carl Edman) (11/26/90)

In article <MAGI.90Nov23192125@polaris.utu.fi> 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