Re: Compiling problems - please help



On Sun, 29 Mar 1998, Andreas Hinze wrote:

> gnome-string.c: In function `gnome_string_split':
> gnome-string.c:19: `INT_MAX' undeclared (first use this function)
> gnome-string.c:19: (Each undeclared identifier is reported only once
> gnome-string.c:19: for each function it appears in.)

That constant is defined in 'limits.h'. In my version of gnome-libs it's
included at the beginning of gnome-string.h:

   #include "gnome-string.h"
   #include <string.h>
   #include <glib.h>
   #include <string.h>
   #include <limits.h>
   #include <ctype.h>

If this doesn't work, you can even try (that's from the GNU libc)

   #ifndef INT_MAX
   /* Minimum and maximum values a `signed int' can hold.  */
   #define INT_MIN (- INT_MAX - 1)
   #define INT_MAX 2147483647
   #endif

> I am using S.U.S.E-Linux 5.1, Kernel 2.0.32. Maybe one knows this
> problem (and a solution) ?

S.u.S.E 5.1 does not yet support the GNU libc. AFAIK the gnome project has
been developed under redhat which does.

-----------------------------------------------------------------
   Martin Baulig - Angewandte Mathematik - Universitaet Trier

   baulig@castor.uni-trier.de, http://www.home-of-linux.com/
   Key: 1024-bit key with ID C8178435 created 1997/01/24 
   ID:  67 C1 84 A0 47 F5 11 C5  5F 68 4C 84 99 05 C3 92
   Finger me for public key or fetch finger.txt from the url above
------------------------------------------------------------------




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