|
|
|
|
|
Re: No Console Output (MinGW, CDT) [message #630143 is a reply to message #630135] |
Thu, 30 September 2010 15:01   |
Eclipse User |
|
|
|
Thank you for this solution, friend.
I also had the same problem, and now it is fixed. I must note, however, that all I had to do was download the 32-bit version of Eclipse C++. Replacing the 64-bit JDK with the 32-bit one was not necessary 
Also, there are a few weird additional symptoms you might have not noticed. Eg, the program does run but it terminates with a very large negative number instead of 0. Also, debugging the program partially works in that it does show the output when I move step by step, but then it breaks down when I try to enter input.
[Updated on: Thu, 30 September 2010 15:07] by Moderator
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: No Console Output (MinGW, CDT) [message #649727 is a reply to message #629872] |
Thu, 20 January 2011 08:00   |
Eclipse User |
|
|
|
Hi,
I am running 64-bit Eclipse (W7 64bit, jdk 1.6 64bit) and was
having the same issue. I tried the FAQ suggestion but didn't
work, as well as flushing manually.
I was getting output if I debugged the app, though. What I did
was head to the location pointed above:
Project Properties -> C/C++ Build -> Settings -> Tool Settings
And from there I noticed (Tool Chain Editor) that the project was using Cygwin for building (I had tried it but couldn't get everything set up right, so I switched to Mingw afterwards, or so I thought lol). Changing to Mingw I got console output without having to revert to 32bit on eclipse/jdk.
No -static flag or additional path settings were set up either.
So in a nutshell, changing to MinGW and ensuring it is used for the current project was what fixed it for me, hope it helps somebody.
Edit: haven't tested for C++ output / cout
[Updated on: Thu, 20 January 2011 15:03] by Moderator
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: No Console Output (MinGW, CDT) [message #1074405 is a reply to message #1058151] |
Fri, 26 July 2013 13:29   |
Eclipse User |
|
|
|
I had the problem after first install of eclipse C++ and MinGW. I don't know how i solved, but i write what i did.
The first install of eclipse for C++ 64bit was in c:\eclipseCpp, and the workspace (set as default + option "don't ask again") was in c:\eclipseCpp\workspace (notice that it's in the same folder)
After read this forum, i started downloading eclipse C++ 32 bit, and instead of deleting the previous installed eclipse, I renamed its folder:
c:\eclipseCpp --> c:\eclipseCpp64
Since still the eclipse32 was not downloaded, while waiting I started eclipse64 from the new location, and it couldn't find the workspace (of course, because i renamed the folder that contained also the default workspace!) so i switched to the new workspace path: c:\eclipseCpp64\workspace
Eclipse restarted, clicked on the .exe file "run as..." and... the console is working . So i didn't need to install eclipse32.
I don't know if i can give more details. The project was an hello world, and in the properties i set is at UTF-8 because with my print i wanted to test also accented letters.
CONCLUSION: try to rename the folder where you have eclipse, if that doesn't work, try also to rename the folder with your workspace without telling that to eclipse, then restart eclipse and switch workspace. Or maybe it's enough to just switch workspace?
[Hope my english is clear, to write so long text in foreign language was really tiring so i hope you understand]
Buona fortuna!
[Updated on: Fri, 26 July 2013 13:34] by Moderator
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: No Console Output (MinGW, CDT) [message #1838851 is a reply to message #1838403] |
Sat, 06 March 2021 11:12  |
Eclipse User |
|
|
|
I am using 32-bit desktop and 64-bit laptop (with projects synchronized between these 2 machines).
Running C Hello world on 32-bit produces outputs as it sould. Running the same program on 64-bit produces no output whatsoever.
mobdro
[Updated on: Sat, 18 September 2021 04:33] by Moderator
|
|
|