Hi Folks . Why pelles c compiler creating warning and not running the following codePlease correct me.Code:#include <stdio.h> #include<conio.h> int main(int argc, char *argv[]) { clrscr(); printf("Hello, world!\n"); return 0; }
Hi Folks . Why pelles c compiler creating warning and not running the following codePlease correct me.Code:#include <stdio.h> #include<conio.h> int main(int argc, char *argv[]) { clrscr(); printf("Hello, world!\n"); return 0; }
What is the warning?
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)
Look up the librarary functions you are using in the help file....
Put your text cursor on the function name and press F1...
Notice anything about your clrscr() call?
Care to tell anybody what the warning/error is, and exactly how it's "not running the code". Perhaps you just need to keep the console open long enough to read it.
In Pelles C ... non-C-99 standard functions are prefixed with an _ so it's _clrscr()...
If a programmer insists upon crappy Turbo C code and he's too lazy to type an underscore, he needs to do the following sequence...
Project -> Project Options -> Compiler -> Check "Define Compatibility Names" -> Ok
Of course this is all explained in the help file...
Last edited by CommonTater; 08-02-2011 at 11:20 AM.
Please Tell Me How can I run .obj file in pelles C Compiler. . .or How can I make .exe from this .obj file
Oh dear!
iMalc: Your compiler doesn't accept misspellings and bad syntax, so why should we?
justin777: I have no idea what you are talking about sorry, I use a laptop and there is no ascii eject or something