Avatar of arvindrajput
arvindrajput

asked on 

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
LinuxLinux Distributions

Avatar of undefined
Last Comment
gunny051499
Avatar of DVB
DVB

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.
Avatar of arvindrajput
arvindrajput

ASKER

yes i have installed all libraries and header file.
    I think i have missed some thing can u send processor to install them
Avatar of gunny051499
gunny051499
Flag of Italy image

please post the include instruction you used to include stdio.h, thanx
ASKER CERTIFIED SOLUTION
Avatar of jetx
jetx
Flag of Canada image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of gunny051499
gunny051499
Flag of Italy image

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
Linux
Linux

Linux is a UNIX-like open source operating system with hundreds of distinct distributions, including: Fedora, openSUSE, Ubuntu, Debian, Slackware, Gentoo, CentOS, and Arch Linux. Linux is generally associated with web and database servers, but has become popular in many niche industries and applications.

71K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo