c compiler

I have installed linux 6.1 to my pc i am new to  linux word. My c copiler is not working properly i have reinstalled it many times. When everi am compling my programe error's comes
filename.c : 1: stdio.h : no such a file or directory
Do u have solution for it
arvindrajputAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

DVBCommented:
Have you installed the header files and the development libraries? The problem des not appear to be in the compiler but in the libs and/or headers.
0
arvindrajputAuthor Commented:
yes i have installed all libraries and header file.
    I think i have missed some thing can u send processor to install them
0
gunny051499Commented:
please post the include instruction you used to include stdio.h, thanx
0
jetxCommented:
the include function is this

make sure you install the egcs compiler and library. Also if you look at the KERNEL howto you can see where to download this compiler

to include stdio.h do

#include <stdio.h>

then compile it via

g++ file.c

../a.out

NOTE: you can use a c++ compiler with c program code because it's backward compatible in some way.


0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
gunny051499Commented:
jetx, stop confunding people will you? ;)
c++ compilers are not backward compatible in "some way", the standard c compilers you get/build alongside with the c++ compliers ARE a subset of them...

a., you may of course use gcc/egcs instead of g++
also, don't use this ugly form for compiling an application, you could use (for example):

gcc -o executable_filename filename.c

and run ./executable_filename afterwards
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.