This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: simple c 's printf problem in mandrake8.0
- From: Andrew Pinski <pinskia at physics dot uc dot edu>
- To: eric <fsshl at centurytel dot net>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Sun, 30 Dec 2001 00:32:38 -0500
- Subject: Re: simple c 's printf problem in mandrake8.0
I think bash and iff run by bash (not sh) will erase the line if there
is no return.
Thanks,
Andrew Pinski
PS this is getting off topic.
On Saturday, December 29, 2001, at 05:32 , eric wrote:
> Dear Andrew:
>
> I download and install gcc3.0.3 from gnu ftp site, by ./configure,
> make, make install
> they try my hello world in printf, it still not print out if no \n at
> the end. Probably it is caused by shell(some told me)
>
> I also tried to load libstdc++-v3.0.95 , but have difficult to install
> it
> ./configure not work for 3.0.3
> so I went to rpm find to get mdk's libstdc++ and isntall it.
>
> still not work,
>
> I already report bug of glibc of gnu, (I am not sure it is a right
> place or not). But if you have more fresh idea to fix it please email
> me.
>
> sincere eric, http://www.ezinfocenter.com/4436786
>
>
>
>
>
>
> Andrew Pinski wrote:
>>
>> It is not because of the compiler but because of the libc library
>> does not flush at the end of the program which I consider a bug.
>> But this is OT for this list.
>>
>> Thanks,
>> Andrew Pinski
>>
>> PS MDK8.0 and RedHat7.1's compilers are junk update them to at least
>> 3.0
>>
>> On Saturday, December 29, 2001, at 09:48 , eric wrote:
>>
>>> Dear gcc programmers:
>>>
>>> I use the mandrake8.0, test a simple c program
>>> printf("hello world"), it did not print anything, until I add \n at
>>> the
>>> end of the string.
>>> such result never happen in redhat7.1 or debian-progeny1.0. some of
>>> mdk's newbie tell me it is because "our compiler is more stricter than
>>> theirs", I wonder whether it is true, especially the program written
>>> and
>>> compiled by the way of redaht or debian may cause error or any
>>> unpredicted result run on mandrke.
>>>
>>> are any file I should install so it can print the "hello world"
>>> without \n?
>>>
>>> highly appreciate your tech help
>>> sincere eric
>>> http://www.onlineexchange.com/shilin
>>>
>>>
>
>