Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 311326 - if there is a scanf eclipse will not print to console until operations are over
Summary: if there is a scanf eclipse will not print to console until operations are over
Status: RESOLVED DUPLICATE of bug 173732
Alias: None
Product: CDT
Classification: Tools
Component: cdt-other (show other bugs)
Version: 0 DD 1.1   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Doug Schaefer CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-02 19:08 EDT by Jim Shepherd CLA
Modified: 2010-05-02 21:46 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jim Shepherd CLA 2010-05-02 19:08:22 EDT
Build Identifier: 20100218-1602

I'm running on a fresh installation of eclipse. I have a project I'm working on.. a simple fill in the code homework assingment. Well its simple until nothing prints to concole. I have tested the issue and only appears if there is a scanf anywhere. Example.


#include <stdio.h>
#include <stdlib.h>

int main(void) {
	printf("!!!Hello World!!!"); /* prints !!!Hello World!!! */
	int test;
	scanf("%d", &test);
	printf("%d",test);
	return 0;
}

OUTPUT
(blank)
>>1
!!!Hello World!!!
1

Should be

!!!Hello World!!!
>>1
1


I'm running windows 7, using minGW.


Reproducible: Always

Steps to Reproduce:
1.blank project
2.add a scanf
3.run
Comment 1 Jim Shepherd CLA 2010-05-02 19:09:25 EDT
 fflush(stdout);
fixes some of it... but it will not print in my functions..
Comment 2 Andrew Gvozdev CLA 2010-05-02 21:46:04 EDT
See bug 173732 for workarounds.

*** This bug has been marked as a duplicate of bug 173732 ***