Error while compiling

Please support our C advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Jan 2007
Posts: 12
Reputation: VIDHYAPREM is an unknown quantity at this point 
Solved Threads: 0
VIDHYAPREM VIDHYAPREM is offline Offline
Newbie Poster

Error while compiling

 
0
  #1
Jan 17th, 2007
hai everybody,
know only i start learning c program,while compiling any program i have the error "stdio.h was not included"

even any header file it may math.h,conio.hstdlib.h etc,we include in our program it show this error "you header file is not included"
how will i rectify the error.

Thanks in advance for your kind help
Reply With Quote Quick reply to this message  
Join Date: Apr 2006
Posts: 5,051
Reputation: John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold 
Solved Threads: 332
Team Colleague
John A's Avatar
John A John A is offline Offline
Vampirical Lurker

Re: Error while compiling

 
0
  #2
Jan 17th, 2007
This doesn't work?
  1. #include <stdio.h>
You'll have to post your code if you want any more help.
Last edited by John A; Jan 17th, 2007 at 10:45 pm.
"Technological progress is like an axe in the hands of a pathological criminal."

All my posts may be freely redistributed under the terms of the MIT license.
Reply With Quote Quick reply to this message  
Join Date: Dec 2005
Posts: 5,850
Reputation: Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute 
Solved Threads: 751
Team Colleague
Salem's Avatar
Salem Salem is offline Offline
Void main'ers are DOOMed

Re: Error while compiling

 
0
  #3
Jan 18th, 2007
Also, which compiler are you talking about?

Also, is this a new problem (like it used to work), or have you just installed it.
Reply With Quote Quick reply to this message  
Join Date: Jan 2007
Posts: 12
Reputation: VIDHYAPREM is an unknown quantity at this point 
Solved Threads: 0
VIDHYAPREM VIDHYAPREM is offline Offline
Newbie Poster

Re: Error while compiling

 
0
  #4
Jan 18th, 2007
Originally Posted by joeprogrammer View Post
This doesn't work?
  1. #include <stdio.h>
You'll have to post your code if you want any more help.
hai,
even for simple program it will not execute .
i include that header file in my program.i wrote like this
  1. #include<stdio.h>
  2. main()
  3. {
  4. printf("have a nice day");
  5. }
it shows only one error. in the first line that your header fileis not included

i think i have to do change in directories (source,output,.....)
but i dn't have clear idea
Last edited by Ancient Dragon; Jan 18th, 2007 at 7:30 am. Reason: add code tags
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 15,606
Reputation: Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute 
Solved Threads: 1490
Team Colleague
Featured Poster
Ancient Dragon's Avatar
Ancient Dragon Ancient Dragon is online now Online
Still Learning

Re: Error while compiling

 
0
  #5
Jan 18th, 2007
please answer Salem's question -- what compiler and operating system are you using?
Don't PM me with questions -- you might get a nasty PM in response. If you have a question then post it in one of the forums.
Reply With Quote Quick reply to this message  
Join Date: Jan 2007
Posts: 12
Reputation: VIDHYAPREM is an unknown quantity at this point 
Solved Threads: 0
VIDHYAPREM VIDHYAPREM is offline Offline
Newbie Poster

Re: Error while compiling

 
0
  #6
Jan 19th, 2007
Originally Posted by Ancient Dragon View Post
please answer Salem's question -- what compiler and operating system are you using?
i am using turbo c
Reply With Quote Quick reply to this message  
Join Date: Jun 2006
Posts: 7,647
Reputation: ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of 
Solved Threads: 473
Super Moderator
Featured Poster
~s.o.s~'s Avatar
~s.o.s~ ~s.o.s~ is offline Offline
Failure as a human

Re: Error while compiling

 
0
  #7
Jan 19th, 2007
Originally Posted by VIDHYAPREM View Post
i think i have to do change in directories (source,output,.....)
Yep, that seems to be logical thing to do next since it says "stdio.h not found' . Check the make sure the path to your header files are properly set in the Turbo C configuration options.
I don't accept change; I don't deserve to live.

Jo Tujhe Jagaaye, Nindein Teri Udaaye Khwaab Hai Sachcha Wahi.
Nindon Mein Jo Aaye Jise To Bhul Jaaye Khawab Woh Sachcha Nahi.
Khwaab Ko Raag De, Nind Ko Aag De
Reply With Quote Quick reply to this message  
Join Date: Nov 2005
Posts: 251
Reputation: dwks has a spectacular aura about dwks has a spectacular aura about 
Solved Threads: 25
dwks's Avatar
dwks dwks is offline Offline
Posting Whiz in Training

Re: Error while compiling

 
0
  #8
Jan 19th, 2007
Q. Why is Turbo C not able to find any of my #include files?
A. The compiler searches for include files in the Turbo C Include Directories. This option is specified under the Options/Directories menu. The INSTALL program initially sets this option to the directory where it copied all the Turbo C *.h files.
From http://www.binarica.com/data/about/bc201.html

[edit] BTW, that link wasn't hard to find -- in fact it was the first hit when googling for "turbo c include". Try a search next time you have a problem; chances are someone's had the same problem. [/edit]
Last edited by dwks; Jan 19th, 2007 at 3:00 pm.
dwk

Seek and ye shall find.

"Only those who will risk going too far can possibly find out how far one can go."
-- TS Eliot.

"I have not failed. I've just found 10,000 ways that won't work."
-- Thomas Alva Edison

"The only real mistake is the one from which we learn nothing."
-- John Powell
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 6,143
Reputation: jwenting is just really nice jwenting is just really nice jwenting is just really nice jwenting is just really nice 
Solved Threads: 213
Team Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: Error while compiling

 
0
  #9
Jan 19th, 2007
Or just read the product documentation...
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
Reply With Quote Quick reply to this message  
Join Date: Jan 2007
Posts: 12
Reputation: VIDHYAPREM is an unknown quantity at this point 
Solved Threads: 0
VIDHYAPREM VIDHYAPREM is offline Offline
Newbie Poster

Re: Error while compiling

 
0
  #10
Jan 19th, 2007
Originally Posted by ~s.o.s~ View Post
Yep, that seems to be logical thing to do next since it says "stdio.h not found' . Check the make sure the path to your header files are properly set in the Turbo C configuration options.
thanks for giving me the idea,

but i dn't know how to set the header file path

please send me a reply how to set the header file path
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



Tag cloud for C
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC