c - Eclipse cdt no output on console; MinGW Path is already set -


i'm sure guys have gotten sick of seeing question on , on again none of solutions displayed in other threads have worked me. i've tried setting c:\mingw path variable, linker flags, nothing works. thing has worked adding:

setvbuf(stdout, null, _ionbf, 0); setvbuf(stderr, null, _ionbf, 0); 

to code not want keep writing in every single program make.

the console show red "terminate" button active @ least means program running not being displayed in console.

to not familiar bug; wrote simple c program in eclipse:

#include <stdio.h>  int main() {     int n;     printf("enter number: ");     scanf("%d", &n);      for(int i=0; i<=n; i++) {         printf("%d\n", i);     }      return 0; } 

when run console looks this: link

and output is:

5 enter number: 0 1 2 3 4 5 

any ideas?

also i'm running windows 10, maybe makes difference?


Comments

Popular posts from this blog

neo4j - finding mutual friends in a cypher statement starting with three or more persons -

php - How to remove letter in front of the word laravel -

minify - Minimizing css files -