Still having an issue with the console output [message #916596] |
Wed, 19 September 2012 04:00  |
Eclipse User |
|
|
|
I am currently using 64bit Eclipse Juno with the newest version of CDT and MinGW. I have looked at a few other threads of people having this same problem where the console doesn't really display anything. I have a very simple program that I'm trying to get to work:
#include <stdio.h>
int main()
{
int temp;
printf("enter a number: ");
scanf("%d", &temp);
printf("%d", temp);
return 0;
}
It says that the program is running after I hit run but it just sits there and doesn't print the initial "Enter a number: " but if I manually click on the console and put in a number it concludes the program successfully and shows me the output. I've already tried adding my MinGW\bin directory to both the PATH in windows and the individual project and I've also tried adding the "-static-libgcc" entry to the linker options as was suggested on another thread. Any ideas?
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04077 seconds