Modify

Opened 11 years ago

Closed 11 years ago

#1986 closed defect (invalid)

./foo.c: line 4: syntax error near unexpected token `"hello world"' && ./foo.c: line 4: syntax error near unexpected token `"hello world"'

Reported by: anonymous Owned by: developers
Priority: normal Milestone:
Component: packages Version:
Keywords: Cc:

Description

when iam trying to executing my sample program as
/*foo.c*/
#include<stdio.h>
main()
{
printf("hello world");
return(0);
}

iam compiling like this

$ ./mipsel-linux-gcc ./foo.c
it is successfully compiling
when iam trying to run like $ ./foo.c
iam getting like
./foo.c: line 4: syntax error near unexpected token `"hello world"'
./foo.c: line 4: `printf("hello world");'

error what is the problem

please consider me

Attachments (0)

Change History (2)

comment:1 Changed 11 years ago by anonymous

Why are you executing the source code and not compiled binary !!! ???
That is the problem.
And IMHO this bug tracker is not for this type of bugs !!!
Read please some manual about programming, etc.

comment:2 Changed 11 years ago by juhosg

  • Resolution set to invalid
  • Status changed from new to closed
  • Summary changed from ./foo.c: line 4: syntax error near unexpected token `"hello world"' && ./foo.c: line 4: syntax error near unexpected token `"hello world"' /foo.c: line 4: `printf("hello world");' to ./foo.c: line 4: syntax error near unexpected token `"hello world"' && ./foo.c: line 4: syntax error near unexpected token `"hello world"'

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.