[Top][All Lists]

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

Re: [Help-smalltalk] Problems compiling 2.1.1

From: Jan Hidders
Subject: Re: [Help-smalltalk] Problems compiling 2.1.1
Date: Fri, 9 May 2003 08:26:07 +0200
User-agent: KMail/1.5

Hello Roberto,

Thanks for the quick help. There actually seem to be two bugs in 
lib-src/ansidecl.h in version 2.1.1. The current text contains:

#ifndef __attribute__
# if !defined __GNUC__ || !defined __GNUC_MINOR__
#  define __attribute__ (x)
# elif  (__GNUC__ * 1000 + _GNUC_MINOR) < 2007
#  define __attribute__ (x)
# endif

The first error is that in the third line is says "_GNUC_MINOR" and not 
"__GNUC_MINOR__".  That is why this definition is used by mistake on my and 
your gcc version 2.95.3. it shouldn't have. 

The second error (which you already indicated) is that on the third and fifth 
line there is a space between "__attribute__" and "(x)".  However, that 
defines "__attribute__" as "(x)" but what you really want is that 
"__attribute__(x)" is defined as "" (empty). So that is not a gcc error, the 
spaces simply shouldn't be there. Perhaps you thought this was a gcc2 error 
because for gcc3 this code simply isn't executed.

This probably should be fixed ASAP.

Kind regards,

-- Jan Hidders

reply via email to

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