[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Error when compiling CVS emacs on Mac OS snow leopard
From: |
Mark Dickinson |
Subject: |
Re: Error when compiling CVS emacs on Mac OS snow leopard |
Date: |
Fri, 4 Sep 2009 12:39:04 -0700 (PDT) |
User-agent: |
G2/1.0 |
On Sep 3, 12:34 pm, ramblex <alexdul...@googlemail.com> wrote:
> I recently upgraded Mac OS X to Snow Leopard and tried to compile CVS
> emacs; I get the following error:
>
> In file included from nsterm.h:20,
> from nsterm.m:41:
> dispextern.h:1250: error: array type has incomplete element type
Replacing the line:
#define NativeRectangle struct _NSRect
in nsgui.h with
#define NativeRectangle NSRect
seems to fix this particular error. The next problem that turns up
is in nsfont.m, in ns_char_width:
nsfont.m: In function ‘ns_char_width’:
nsfont.m:248: warning: ‘NSFont’ may not respond to ‘-widthOfString:’
nsfont.m:248: warning: (Messages without a matching method signature
nsfont.m:248: warning: will be assumed to return ‘id’ and accept
nsfont.m:248: warning: ‘...’ as arguments.)
nsfont.m:248: error: incompatible types in assignment
Here the problem seems to be that the widthOfString NSFont method
was deprecated, and no longer exists for 64-bit builds. The fix isn't
at all obvious to me.
--
Mark