Bug 101596 - Can't Get GCC to Compile
Summary: Can't Get GCC to Compile
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: gcc
Version: 8.0
Hardware: All
OS: Linux
high
low
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact: Brian Brock
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2003-08-04 15:49 UTC by Nicholas stuart
Modified: 2005-10-31 22:00 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2003-08-04 20:37:32 UTC
Embargoed:


Attachments (Terms of Use)

Description Nicholas stuart 2003-08-04 15:49:06 UTC
I am trying to compile a C code and it won't work. Here is the code i type



#include <stdio.h>

main()
{
printf("Hi\n");
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 20:37:32 UTC
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.