> Date: Wed, 22 Mar 2000 14:55:58 +0100
> From: Marcus Brinkmann <[EMAIL PROTECTED]>
> To: Michal Fecanin Araujo <[EMAIL PROTECTED]>
> Cc: Debian Development List
> Subject: Re: Compiling Error
>
> On Wed, Mar 22, 2000 at 01:15:01PM +
On Wed, Mar 22, 2000 at 01:15:01PM +, Michal Fecanin Araujo wrote:
> --
> #include
>
> FILE *output=stderr;
>
> int main()
> {
> fprintf(output,"Hello World\n");
> }
> --
>
> The proble
Read the gnu libc FAQ, it contains info about why this happens, and it
pretty much explains that the first example you show is not valid ANSI C.
So in affect, it is a bug in the program to do that (since std{out,in,err}
are not really constants, but are runtime dependant).
The example you show bel
The following reports an error during compiling:
--
#include
FILE *output=stderr;
int main()
{
fprintf(output,"Hello World\n");
}
--
The problem is that its not possible to initialize outp
4 matches
Mail list logo