Terminal problem

Asked by balaji

when compiling a 'C' file ...The error shown is Stdio.h is not a valid file or directory

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu gcc-defaults Edit question
Assignee:
No assignee Edit question
Solved by:
balaji
Solved:
Last query:
Last reply:
Revision history for this message
Rodolphe Ortalo (rodolphe-ortalo) said :
#1

If your program is written in classical C, the name of the C header file is certainly stdio.h and not Stdio.h (note the lowcaps, filenames in Unix are case-sensitives).
Usually, it is included via this C (preprocessor) directive:
#include <stdio.h>
Most certainly, the full pathname of this file is actually: /usr/include/stdio.h
(Note the '<' '>' pair, which inform the C preprocessor to look after the header file in standard directories.)

Revision history for this message
balaji (bala6974) said :
#2

Thanks for ur answers!!
but that dint solve my problem!!!
i attache the program which i compiled and also with errors!!
plz help me to solve it

Revision history for this message
balaji (bala6974) said :
#3

error: Stdio.h: No such file or directory
call.c:2:23: error: Sys/socket.h: No such file or directory
call.c:3:22: error: Sys/types.h: No such file or directory
call.c:4:23: error: netinet/in.h: No such file or directory
call.c: In function ‘main’:
call.c:9: error: storage size of ‘serv’ isn’t known
call.c:9: error: storage size of ‘client’ isn’t known
call.c:10: error: ‘AF_INET’ undeclared (first use in this function)
call.c:10: error: (Each undeclared identifier is reported only once
call.c:10: error: for each function it appears in.)
call.c:10: error: ‘SOCK_STREAM’ undeclared (first use in this function)
call.c:13: error: ‘INADDR_ANY’ undeclared (first use in this function)

These are the errors i encountered while compiling my program