[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [DotGNU]pnetC on OS X

From: Mario D . Santana
Subject: Re: [DotGNU]pnetC on OS X
Date: Wed, 13 Aug 2003 13:56:49 -0400

OK, played around with pnetC/libc/ctype/wctype.c and found the following. The relevant errors are:

../../include/stddef.h:42: parse error, expecting an identifier or `(' or `*' or `;', at or near `"long long"' ../../include/stddef.h:58: parse error, expecting an identifier or `(' or `*' or `;', at or near `"unsigned int"'

lines 42 and 58 of stddef.h are:
  typedef __PTRDIFF_TYPE__        ptrdiff_t;
  typedef __WINT_TYPE__           wint_t;

Using -E seems to expand these to:
  typedef "long long" ptrdiff_t;
  typedef "unsigned int" wint_t;

Strange quotes, I thought, so I ran cscc on wctype.c again, with -D__PTRDIFF_TYPE__='long long' and -D__WINT_TYPE__='unsigned int' and it seemed to work. Looking for the definition of __PTRDIFF_TYPE__ and __WINT_TYPE__ yielded nothing to my tired eyes. Hopefully this is enough for fresher minds to pinpoint the problem? It would sure be nice to be able to work on my laptop again.



On Wednesday, August 13, 2003, at 06:50 AM, Rhys Weatherley wrote:

On Monday 11 August 2003 03:49 am, Mario D.Santana wrote:

I'm having trouble compiling the pnetC library on MacOS X.2.6, treecc
and pnet/pnetlib compiled and installed from CVS this morning.  The
error follows.  It's the first compilation attempted, so I'm sure I'm
doing something silly...

It could be the C pre-processor going wonky. The MacOS X pre-processor works differently to most other gcc ports. You may want to try running "cscc -E" on the "wctype.c" file, with the same command-line options, and look to see if there is anything odd in the output. The C pre-processor is launched by
"pnet/common/cc_main.c" in the function "ParseFile".



Developers mailing list

reply via email to

[Prev in Thread] Current Thread [Next in Thread]