when i have run the program using he -o i got the following errors
please help
Clientsend.c:1: 19: error: stdio.h: No such file or directory
Clientsend.c:2: 20: error: stdlib.h: No such file or directory
Clientsend.c:3: 20: error: string.h: No such file or directory
Clientsend.c:4: 23: error: sys/types.h: No such file or directory
Clientsend.c:5: 24: error: sys/socket.h: No such file or directory
...
User Profile
Collapse
-
syntax error near unexpected token `('
Hi all
I am doing the socket programming for the client side. but the code is not compiling and i am getting the below error
./Clientsend.c: line 11: syntax error near unexpected token `('
./Clientsend.c: line 11: `int main()'
Code:
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
... -
syntax error near unexpected token `('
hi all
i am getting the error
line 11: syntax error near unexpected token `('
line 11: `int main()'
while trying to complie a c program in ubuntu
The code is very simple
# include <stdio.h>
int main()
{
printf("Hello") ;
return 0;
}
Please help me how to rectify this
Vani
No activity results to display
Show More
Leave a comment: