Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
From: michal@gortel.phys.ualberta.ca (Michal Jaegermann)
Subject: Re: clapack -> Compiled, but buggy stdlib.h in glibc-devel-2.0.6-9
Date: 1998/02/09	[thread overview]
Message-ID: <6bnou2$cr2$1@pulp.ucs.ualberta.ca> (raw)
In-Reply-To: 34DF4441.D80C46F3@nospam.bkm.dtu.dk


K. Nikolaj Berntsen (berntsen@nospam.bkm.dtu.dk) wrote:
: 
: > The first compile-error is:
: > err.c:174: structure has no member named `_flag'
: 
: There was a workaround to this one (although I do not like do:
: #define NON_UNIX_STDIO
: )
: 
: Thanks to 
: Michal Jaegermann
: for commenting on it though.

For the record - this was NOT what I was suggesting in a private
e-mail.  My advice was to fix obviously buggy original code by
using 'setvbuf()'.  Manual page has more details.

: 
: There seems to be a bigger problem though, namely that I get a
: compile-error from stdlib.h:
: 
: In file included from err.c:17:
: /usr/include/stdlib.h:307: parse error before `4'

This looks like something defines srand or drand as a macro;
this macro gets expanded in a preprocessor and compiler gets
a garbage.  What is a culprit here is it impossible to tell from
the code sample.  '-E' flag to gcc helps to resolve such matters.
Once again - documentation is your friend.

In situations like that sometimes changing an order of includes
helps to resolve a problem.

  --mj



      reply	other threads:[~1998-02-09  5:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-02-09  5:00 clapack K. Nikolaj Berntsen
1998-02-09  5:00 ` clapack -> Compiled, but buggy stdlib.h in glibc-devel-2.0.6-9 K. Nikolaj Berntsen
1998-02-09  5:00   ` Michal Jaegermann [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox