On Sat, Jul 14, 2001 at 04:08:05PM +0000, Gabe Bauman wrote:
> Unfortunately, the build didn't get much further. I am now getting
> parse errors in expat.h, of all places. For the record, this is the
> latest expat off of Sourceforge, and I am using iconv 1.7. Am I missing
> something?
> ...
> /boot/home/config/include/expat.h:547: parse error before
> `__attribute__'
> ...
I'm not at all familiar with BeOS, but I do know that __attribute__ is
a GNUism. If you're not using GCC or appropriate headers then that's
probably why it's failing on that. If you put
#define __attribute__(x)
in one of the global headers, or in the expat headers even, that
should solve that problem.
Most contemporary *ix systems seem to have something along the lines
of (taken from Darwin here):
#if !defined(__GNUC__) || __GNUC__ < 2 || \
(__GNUC__ == 2 && __GNUC_MINOR__ < 5)
#define __attribute__(x) /* delete __attribute__ if non-gcc or gcc1 */
#endif
in <sys/cdefs.h> - I suppose that BeOS doesn't have that, hence the
problem.
.robin.