Bug 101596 - Can't Get GCC to Compile
Can't Get GCC to Compile
Product: Red Hat Linux
Classification: Retired
Component: gcc (Show other bugs)
All Linux
high Severity low
: ---
: ---
Assigned To: Jakub Jelinek
Brian Brock
Depends On:
  Show dependency treegraph
Reported: 2003-08-04 11:49 EDT by Nicholas stuart
Modified: 2005-10-31 17:00 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2003-08-04 16:37:32 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Nicholas stuart 2003-08-04 11:49:06 EDT
I am trying to compile a C code and it won't work. Here is the code i type

#include <stdio.h>

return 0;

I save it as Hi.c and go to the Bash prompt and type gcc Hi.c and i get a 
message that says hi.c :: 7:2 no new line command found. I have tryed again 
and again and it won't work please help me. I have inquared with the the man 
pages and info page and there is no info that helps me.
Comment 1 Jakub Jelinek 2003-08-04 16:37:32 EDT
If you mean
warning: no newline at end of file
then it is just that, a warning, telling you that each .c/.h file is supposed
to end by a newline.
Unless you used -Werror, GCC compiled the file, but you should nevertheless
fix it by adding a newline to the end (e.g. echo >> Hi.c would do).

Note You need to log in before you can comment on or make changes to this bug.