Re: Glib compilation warnings.
- From: Detlef Reichl <detlef reichl arcormail de>
- To: "GTK app devel" <gtk-app-devel-list gnome org>
- Subject: Re: Glib compilation warnings.
- Date: Sun, 08 Oct 2000 09:50:09 CEST
On Sun, 08 Oct 2000, Andrew King wrote:
Hi all,
I was wondering if anyone could tell me how to fix the following
compilation warnings:
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../intl -I../iproute2/include
-I/usr/src/linux/include -I/usr/include -DNEED_GNOMESUPPORT_H
-I/usr/lib/gnome-libs/include -I/usr/lib/glib/include
-I/usr/X11R6/include -I/usr/lib/glib/include -I/usr/X11R6/include -g
-O2 -Wall -Wunused -c gtc_qdisc.c
In file included from /usr/include/resolv.h:66,
from ../iproute2/include/utils.h:7,
from gtc_qdisc.c:25:
/usr/include/sys/param.h:56: warning: `MIN' redefined
/usr/include/glib.h:137: warning: this is the location of the previous
definition
/usr/include/sys/param.h:57: warning: `MAX' redefined
Thanks,
Andrew.
hi andrew
you have to include the 'sys/param.h' before you include anyting of glib,
gtk or gnome, cause in glib.h MIN and MAX are redifined.
but since glib.h undef's em before redefinition and sys/param.h not, you
need this order.
hope that helps
detlef
--
| Multipliciter Lingua |
| muli.sourceforge.net |
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]