Path: utzoo!attcan!uunet!pyrdc!pyrnj!rutgers!ucla-cs!kurisaki From: kurisaki@oahu.cs.ucla.edu Newsgroups: comp.lang.c++ Subject: Gnu C++ and Sunview Message-ID: <17983@shemp.CS.UCLA.EDU> Date: 16 Nov 88 19:36:51 GMT Sender: news@CS.UCLA.EDU Reply-To: PKomeiji.ElSegundo@Xerox.com Organization: UCLA Computer Science Department Lines: 18 I've been trying to compile Sunview code with the GNU C++ compiler. The compiler complains about some of the Sunview and system .h files. One problem seems to be that C++ doesn't like type of definitions that rename themselves by the same name - typedef struct x { int y; .. } x; In /usr/include/sys/types.h, these types of definitions exist. Has anyone found a workaround that doesn't involve changing these .h files? Another problem that I encountered involved the ordering of the include files within the Sunview .h files. In Textsw.h, the type caddr_t is used prior to its definition and the C++ compiler posts a parse error msg. Is there a workaround for this? Thanks, Paul (PKomeiji.ElSegundo@Xerox.com)