Problem compiling GTK+ and GLib 1.2.5
- From: Tony Denault <denault hawaii edu>
- To: gtk-list redhat com
- Subject: Problem compiling GTK+ and GLib 1.2.5
- Date: Wed, 29 Sep 1999 10:47:35 -1000
gtk 1.2.5 didn't compile on my linux system: slackware, 2.2.6 kernal, gcc 2.7.2.3
The problem as in testgtk.c, the line
static int idle = 0; (line 7771)
conflicted with a line in /usr/include/unistd.h:669: extern int idle __P((void));
See output below:
gcc -DHAVE_CONFIG_H -I. -I. -I.. -DG_LOG_DOMAIN=\"Gtk\" -DGTK_DISABLE_COMPAT_H
-DGTK_EXE_PREFIX=\"/usr/local\" -DGTK_DATA_PREFIX=\"/usr/local\" -DGTK_SYSCONFDIR=\"/usr/local/etc\"
-DGTK_LOCALEDIR=\"/usr/local/lib/locale\" -I.. -DGTK_NO_CHECK_CASTS -DUSE_XIM
-I/usr/local/lib/glib/include -I/usr/local/include -D_REENTRANT -I/usr/X11R6/include -O2 -Wall -c
testgtk.c
testgtk.c:7771: `idle' redeclared as different kind of symbol
/usr/include/unistd.h:669: previous declaration of `idle'
testgtk.c:7771: warning: `idle' was declared `extern' and later `static'
make[2]: *** [testgtk.o] Error 1
Just renamed the idle variable & everything was ok.
/-----------------------------------------------------------------------------\
| Tony Denault | Internet: denault@irtf.ifa.hawaii.edu |
| NASA IRTF, Institute of Astronomy | Phone: (808) 974-4206 |
| 1175 Manono St., Bldg 393 | Fax: (808) 974-4207 |
| Hilo, Hawaii 96720 | |
\-----------------------------------------------------------------------------/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]