RE: Including stdio.h causing compilation failure



Looks like a name conflict but I'm not sure.

I'd check line 263 of libio.h and see what is before/around
size_t, and then see if its defined somewhere within gnome.
Actually it would have to be a problem wiht a header file 
that is included somewhere before line 9 of gnome-print.c

An emperical approach would be to reorder the includes before
line 9 of pgnome-print.c to identifiy which header file is 
causing the conflict but because of nested header files that
can be hard to nail it down to one file but its a start.

> -----Original Message-----
> From: Ross Golder [mailto:rossigee@bigfoot.com]
> Sent: Tuesday, February 29, 2000 8:47 AM
> To: gnome-devel-list@gnome.org
> Subject: Including stdio.h causing compilation failure
> 
> 
> Typically goes something like...
> 
> gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I/usr/X11R6/include
> -I/usr/lib/glib/include -I../intl -I../intl -I/usr/include
> -DNEED_GNOMESUPPORT_H -I/usr/lib/gnome-libs/include
> -I/usr/lib/glib/include -I/usr/X11R6/include -DPROFILEDIR=\"\"
> -DGNOMELOCALEDIR=\"/usr/share/locale\" -DBINDIR=\"/usr/bin\"
> -DDATADIR=\"/usr/share\" -O2 -m486 -fno-strength-reduce -Wall -Wunused
> -c -fPIC -DPIC gnome-print.c -o gnome-print.lo
> In file included from /usr/include/stdio.h:57,
>                  from gnome-print.c:9:
> /usr/include/libio.h:263: parse error before `size_t'
> 
> Standard(ish) RedHat 6.1 system, using latest updates.
> 
> [root@durban rossg]# rpm -qf /usr/include/stdio.h
> glibc-devel-2.1.2-11
> [root@durban rossg]# rpm -V glibc-devel
> [root@durban rossg]# rpmfind --latest glibc-devel
> Resource glibc-devel latest version already installed
> [root@durban rossg]# 
> 
> Any ideas?
> 
> I can compile a simple Hello World program using stdio.h, but nothing
> related to GNOME. 
> 
> Thanks in advance,
> 
> --
> Ross
> 
> 
> -- 
> To unsubscribe: mail gnome-devel-list-request@gnome.org with 
> "unsubscribe"
> as the Subject.
> 



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