[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: the weird problem
- From: "Pete Peterson" <petersonp genrad com>
- To: redhat-install-list redhat com, thenightmare555 yahoo com
- Subject: Re: the weird problem
- Date: Wed, 30 Oct 2002 09:26:02 -0500 (EST)
> From: nobody somebody <thenightmare555 yahoo com>
> Subject: the weird problem
> To: redhat-install-list redhat com
>
> Look folks...
>
> I have one Intel Pentium IV processor with 128mb of ram ...
>
> I've installed redhat 8.0 and I have one weird problem....
>
> I created a file called test.c --->
>
> #include <stdio.h>
>
> void main()
>
> {
>
> printf("test");
>
> }
>
> [root localhost]#gcc -o test test.c
>
> [root localhost]# /test
>
> [root localhost]#
>
>
>
> so I can compile it succesfuly ....
>
> but I can't run ne binary file
>
> c00L_3oy
>
> ps. I hope you can help me
I haven't done any C programming for a while, but it looks like
the output buffer for stdout isn't being flushed, since there's no
newline at the end of your string. It should work if you include
the newline or if you explicitly "fclose(stdout)", causing the buffer
to be flushed.
--
pete peterson
Teradyne, Inc.; 7 Technology Park Drive; Westford, MA 01886-0033
+1-978-589-7478 (Office); +1-978-589-2088 (FAX);
pete peterson teradyne com or petersonp genrad com
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]