Question:
How can I compile a C++ file?
?
2009-08-17 10:20:27 UTC
when I use cmd or Dev-C++ there is always an error
like this
unable to open include stdio.h'
warning :call to function 'system' with no prototype in function main
****1 errors in compile****
Four answers:
aditi b
2009-08-17 10:32:20 UTC
this problem arises when the compiler cannot locate the header files.

Even I was facing the same problem, when I installed the software on my Vista. It happens when the program in not installed corectly, or the required header files are missing.

Then I installed.. bloodshed Gcc - version 4.9.9.2 beta version.

And on this,

its not showing the above error... and the programs are running fine.

NOTE:

----------

With Dev-C++ compiler always try to use int main(), and hence always return 0; else it throws warning. and it will not jump on goto statements followed by labels.

--------------------------------------

these are the source, you can download the Bloodshed Dev-C++ 4.9.9.2 compiler.
anonymous
2009-08-17 17:27:37 UTC
You need to reconfigure your compilation environment so that the compiler can find your standard header files. There is probably a configuration file your compiler uses to find these directories.



Optionally, you can include the full path of the header files in your include statements.
JahaRa
2009-08-17 17:26:56 UTC
wow, a trip down memory lane. If I remember correctly, you are missing something in your compiler. Re-load it or update it.
?
2009-08-17 17:26:10 UTC
Your stdio.h is not in the installations path.

So call the file with an absolute path name.


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...