ken@csis.dit.csiro.au (Ken Yap) (09/18/90)
I'm trying to compile a program with g++. I get this diagnostic: /local/include/X11/Intrinsic.h:102: parse error before `char' Looking at line 102: typedef char *String; but a few lines above: #if defined(__cplusplus) || defined(c_plusplus) #define CONST const /* make const String do the right thing */ #define String char* <- huh? #else #define CONST #endif /* __cplusplus */ What's happening here? Have I missed a patch? Here are the version lines: * $XConsortium: Intrinsic.h,v 1.131 90/02/06 17:41:27 converse Exp $ * $oHeader: Intrinsic.h,v 1.10 88/09/01 10:33:34 asente Exp $ Thanks in advance. Ken ken@csis.dit.csiro.au
converse@EXPO.LCS.MIT.EDU (09/20/90)
> I'm trying to compile a program with g++. I get this diagnostic: > > /local/include/X11/Intrinsic.h:102: parse error before `char' ... > What's happening here? Have I missed a patch? Yes, this was fixed in public patch #10. There are currently 14 public patches to X11R4 available. They ought to be applied in order.