[Top][All Lists]

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

Re: guile-1.8.4 error

From: Ludovic Courtès
Subject: Re: guile-1.8.4 error
Date: Tue, 18 Mar 2008 10:04:17 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux)


Kamaraju S Kusumanchi <address@hidden> writes:

> I don't think that code will even compile.

Hmm, good point.  ;-)

Anyway, forget the previous message, it's this code that you should try
to compile and run:

  typedef char ac__type_sizeof_;
  static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  static unsigned long int ulongval () { return (long int) (sizeof 
(ac__type_sizeof_)); }
  #include <stdio.h>
  #include <stdlib.h>
  main ()

    FILE *f = fopen ("conftest.val", "w");
    if (! f)
      return 1;
    if (((long int) (sizeof (ac__type_sizeof_))) < 0)
        long int i = longval ();
        if (i != ((long int) (sizeof (ac__type_sizeof_))))
          return 1;
        fprintf (f, "%ld\n", i);
        unsigned long int i = ulongval ();
        if (i != ((long int) (sizeof (ac__type_sizeof_))))
          return 1;
        fprintf (f, "%lu\n", i);
    return ferror (f) || fclose (f) != 0;

    return 0;

At any rate, I'm sure `config.log' will give us a good idea of what's

Thanks in advance,

reply via email to

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