Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!apple!portal!gdc!nms!bergquis From: bergquis@nms.gdc.portal.com (Brett Bergquist) Newsgroups: comp.lang.c++ Subject: Re: Sun C++ 2.0 and RPC: Urg! Message-ID: <260@wimpy.nms.gdc.portal.com> Date: 20 May 91 16:30:45 GMT References: Organization: General DataComm, Middlebury CT Lines: 33 I to have been trying to get Sun C++ 2.0 to work with RPC. I found the same faults in the header files that you did. I took a different approach by compiling the _svc.c, _xdr.c, and _clnt.c using the C compiler. Somewhere in the manual for C++, it mentioned that you probably want to compile these files with the C compile so that you do not get a lot of warnings. I've noticed that rpcgen++ is not the same as the version that came with with system. In fact, its a revision or so behind. I also found that it has a major bug in that if I retype a basic type, it generates the wrong code. For example: typedef long Mtime; produces typedef u_long *Mtime; For me this was a show stopper. In order to get C++ compatible headers, I fetched a copy of version 3.9 of rpcgen from the net, and modified it myself to support C++. In fact this worked better, because I also modified it to support my error handling mechanisms, coding standards, etc. I've seen a copy of C++ 2.1 and rpcgen++ has been updated to the latest version, without TLI I believe. My Sun salesman said that it has officially been released and is shipping, but I am still waiting for our systems administrator to get it. -- Brett M. Bergquist, Principal Engineer | "Remind me" ... "to write an General DataComm, Inc., | "article on the compulsive reading Middlebury, CT 06762 | of news." - Stranger in a Strange Land Email: bergquis@nms.gdc.portal.com or ...!portal!gdc!nms!bergquis