Re: pb compiling with gcc-2.7.2.3-3
Juan Cespedes wrote:
> Should that program work? You are initializing a local
> variable with the contents of an extern one. It's like this one:
> ---cut here---
> extern int a;
> int b = a;
> main() {}
> ---cut here---
> ...which doesn't work on sparc, and doesn't work on i386.
>
> In libc5 and glibc-2.0, std{in,out,err} are defined to... I
> don't know what, but they aren't strictly `extern FILE *', as ANSI C
> says they should be.
At least, it works with libc5.
> I think the problem is in that program. But I may be wrong...
> I don't have the ANSI C specs here.
Well, I don't know much about the specs. Anyway I fixed the program.
Thanks.
--
Eric Delaunay | "La guerre justifie l'existence des militaires.
delaunay@lix.polytechnique.fr | En les supprimant." Henri Jeanson (1900-1970)
--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-sparc-request@lists.debian.org .
Trouble? e-mail to templin@bucknell.edu .
Reply to: