Re: stdlib.h


Subject: Re: stdlib.h
From: Paul Schinder (schinder@pobox.com)
Date: Thu Oct 26 2000 - 05:38:53 MDT


At 1:06 AM -0400 10/26/00, Black wrote:
>I encountered a very strange error when I attempted to compile some code
>in which I had done an #include stdlib.c.
>/usr/include/stdlib.h:429: parse error before '2'
>/usr/include/stdlib.h:429: warning: no semicolon at end of struct or union
>/usr/include/stdlib.h:434: parse error before '}'
>
>This is particularly odd considering there isn't a '2' on line 429. Has
>anyone seen anything like this before? I have glibc-devel version 2.1.3
>release 5a installed, and I haven't seen a newer one anywhere.

Things like this are often caused by conflicting #define's in the
various .h files you're using. The best way to diagnose is to run
gcc -E with all the appropriate -I's, if any, and see what the output
actually looks like.

>
>-christopher andrews
>cpa@ece.cmu.edu

-- 
--
Paul Schinder
schinder@pobox.com



This archive was generated by hypermail 2a24 : Thu Oct 26 2000 - 05:46:26 MDT