help-emacs-windows
[Top][All Lists]
Advanced

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

Re: [h-e-w] redefine error of Display


From: Goodwu
Subject: Re: [h-e-w] redefine error of Display
Date: Fri, 17 Oct 2003 13:47:59 +0800

This is the gcc I'm using:(under cygwin)
$ gcc --version
gcc (GCC) 3.3.1 (cygming special)

The error messages:
gcc -I. -DWIN32_LEAN_AND_MEAN -D_WIN32_WINNT=0x0400 -D_X86_=1 -c -g -mno-cygwin
-mcpu=i686 -O2  -Di386 -D_CRTAPI1=_cdecl  -Ic:/vc_devel/include -Demacs=1 -DWIND
OWSNT -DDOS_NT -DHAVE_CONFIG_H -I../nt/inc -D_UCHAR_T -DHAVE_NTGUI=1 -DUSE_CRT_D
LL=1 -o oo-spd/i386/w32fns.o w32fns.c
w32fns.c: In function `x_create_x_image_and_pixmap':
w32fns.c:8186: warning: passing arg 4 of `CreateDIBSection' from incompatible po
inter type
In file included from c:/vc_devel/include/X11/xpm.h:88,
                 from w32fns.c:9054:
c:/vc_devel/include/X11/simx.h: At top level:
c:/vc_devel/include/X11/simx.h:67: error: redefinition of `Display'
w32gui.h:81: error: `Display' previously declared here
w32fns.c: In function `png_load':
w32fns.c:10674: warning: assignment makes pointer from integer without a cast
w32fns.c:10682: warning: assignment makes pointer from integer without a cast
w32fns.c:10691: warning: assignment makes pointer from integer without a cast
In file included from c:/vc_devel/include/jpeglib.h:26,
                 from w32fns.c:10985:
c:/vc_devel/include/jmorecfg.h: At top level:
c:/vc_devel/include/jmorecfg.h:135: warning: redefinition of `UINT8'
/usr/i686-pc-mingw32/include/basetsd.h:34: warning: `UINT8' previously declared
here
c:/vc_devel/include/jmorecfg.h:147: warning: redefinition of `UINT16'
/usr/i686-pc-mingw32/include/basetsd.h:35: warning: `UINT16' previously declared
 here
c:/vc_devel/include/jmorecfg.h:155: warning: redefinition of `INT16'
/usr/i686-pc-mingw32/include/basetsd.h:31: warning: `INT16' previously declared
here
w32fns.c: In function `jpeg_load':
w32fns.c:11262: warning: assignment makes pointer from integer without a cast
w32fns.c: In function `tiff_load':
w32fns.c:11666: warning: assignment makes pointer from integer without a cast
w32fns.c:11688: warning: assignment makes pointer from integer without a cast
w32fns.c:11778:1: warning: "DrawText" redefined
In file included from /usr/include/w32api/windows.h:55,
                 from w32gui.h:23,
                 from dispextern.h:57,
                 from w32fns.c:33:
/usr/include/w32api/winuser.h:3632:1: warning: this is the location of the previ
ous definition
w32fns.c: In function `gif_load':
w32fns.c:11941: warning: assignment makes pointer from integer without a cast
w32fns.c:11957: warning: assignment makes pointer from integer without a cast
make: *** [oo-spd/i386/w32fns.o] Error 1

>Goodwu wrote:
>> I'm compiling the CVS version. It seems that this problem is not properly 
>> fixed.
>> BTW, the xpm headers are downloaded from gnuwin32.sourceforge.net. The 
>> package name is xpm-nox-4.2.0-lib.zip.
>> 
>>>
>>>>There's a bug in the compilation.
>>>>"typedef HDC Display;" is in both src/w32gui.h and X11/simx.h,
>>>
>>>That is not a good solution. The Emacs definition of Display and the XPM
>>>library definition of Display are very different.
>
>In fact the definitions are the same. So how is this a bug?
>Does any known compiler treat this as an error rather than a benign warning?
>
>
When using mingw instead:
D:\emacs_src\src>gcc --version
gcc (GCC) 3.2 (mingw special 20020817-1)

There's no error message, but the the message is similar :

gcc -I. -DWIN32_LEAN_AND_MEAN -D_WIN32_WINNT=0x0400 -D_X86_=1 -c -g -mno-cygwin
-mcpu=i686 -O2  -Di386 -D_CRTAPI1=_cdecl  -Ic:/vc_devel/include -Demacs=1 -DWIND
OWSNT -DDOS_NT -DHAVE_CONFIG_H -I../nt/inc -D_UCHAR_T -DHAVE_NTGUI=1 -DUSE_CRT_D
LL=1 -o oo-spd/i386/w32fns.o w32fns.c
w32fns.c: In function `x_create_x_image_and_pixmap':
w32fns.c:8186: warning: passing arg 4 of `CreateDIBSection' from incompatible po
inter type
In file included from c:/vc_devel/include/X11/xpm.h:88,
                 from w32fns.c:9054:
c:/vc_devel/include/X11/simx.h: At top level:
c:/vc_devel/include/X11/simx.h:67: redefinition of `Display'
w32gui.h:81: `Display' previously declared here
w32fns.c: In function `png_load':
w32fns.c:10674: warning: assignment makes pointer from integer without a cast
w32fns.c:10682: warning: assignment makes pointer from integer without a cast
w32fns.c:10691: warning: assignment makes pointer from integer without a cast
In file included from c:/vc_devel/include/jpeglib.h:26,
                 from w32fns.c:10985:
c:/vc_devel/include/jmorecfg.h: At top level:
c:/vc_devel/include/jmorecfg.h:135: warning: redefinition of `UINT8'
C:/Dev-Cpp/include/basetsd.h:34: warning: `UINT8' previously declared here
c:/vc_devel/include/jmorecfg.h:147: warning: redefinition of `UINT16'
C:/Dev-Cpp/include/basetsd.h:35: warning: `UINT16' previously declared here
c:/vc_devel/include/jmorecfg.h:155: warning: redefinition of `INT16'
C:/Dev-Cpp/include/basetsd.h:31: warning: `INT16' previously declared here
w32fns.c: In function `jpeg_load':
w32fns.c:11262: warning: assignment makes pointer from integer without a cast
w32fns.c: In function `tiff_load':
w32fns.c:11666: warning: assignment makes pointer from integer without a cast
w32fns.c:11688: warning: assignment makes pointer from integer without a cast
w32fns.c:11778:1: warning: "DrawText" redefined
In file included from C:/Dev-Cpp/include/windows.h:55,
                 from w32gui.h:23,
                 from dispextern.h:57,
                 from w32fns.c:33:
C:/Dev-Cpp/include/winuser.h:3525:1: warning: this is the location of the previo
us definition
w32fns.c: In function `gif_load':
w32fns.c:11941: warning: assignment makes pointer from integer without a cast
w32fns.c:11957: warning: assignment makes pointer from integer without a cast
make: *** [oo-spd/i386/w32fns.o] Error 1





reply via email to

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