C++ projects give no output, am I doing something wrong? [message #1064168] |
Mon, 17 June 2013 21:48  |
Eclipse User |
|
|
|
Downloaded the C/C++ eclipse IDE today, tried out a simple hello world C project, the one the IDE includes worked fine I think. Then I tried the hello world C++ project, it compiled but it would not print on the console in eclipse. Did I do something wrong? I just started a normal C++ project that the ide included and it wont work for some reason. Anyone know what to do?
|
|
|
|
|
Re: C++ projects give no output, am I doing something wrong? [message #1064376 is a reply to message #1064364] |
Tue, 18 June 2013 22:12   |
Eclipse User |
|
|
|
Yep, when I put the
setvbuf(stdout, NULL, _IONBF, 0);
setvbuf(stderr, NULL, _IONBF, 0);
At the start of main like it tells me to it gives me like 4 errors.
EDIT: Those errors being _IONBF stdout, stderr, and setvbuf were not declared in this scope.
[Updated on: Tue, 18 June 2013 22:29] by Moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04115 seconds