Mon Problems While Using Eclipse IDE
Mon Problems While Using Eclipse IDE
2. Do not add space or any special character in the file or project name. file or project
name should use only capital & small letters, digits and underscore. Violate this may
generate a build error.
3. Files extensions in c language should be .c or .h in small letters NOT capital letters (.C or
.H) are not correct extensions. C compilers are building files with .c or .h formats only.
4. If you are taking an input character from the console through scanf. Make sure you left
a space before %c to prevent scanf function from taking new line or enter from the
previous printf or scanf functions.
scanf(“ %c”,&input);
1|Page
5. Do not Build a project while its executable is running. You will face the below error
“cannot open output file Exercise.exe: Permission denied”.
a. That’s happened because you cannot build & generate a new executable
file(.exe) to replace the old executable file while the old executable file is still
running!
b. To fix it you need to stop or kill the running executable.
i. Click on arrow beside the “Display Selected Console” in eclipse console.
iv. Build the project again and the error message will be disappeared.
2|Page
6. For printing messages before scanf in eclipse terminal you need to use one of the below
two solutions:
a. Add this line wherever you need to print the buffered messages.
fflush(stdout);
b. Or write these two lines only one time at the beginning of the main function
setvbuf(stdout, NULL, _IONBF, 0);
setvbuf(stderr, NULL, _IONBF, 0);