Error running Hello World project with default eclipse CDT

0

I'm trying to use the default code that comes in the Hello World project in Eclipse CDT (I'm using minGW), but when I put it to run the project nothing appears on the console, only that the application has been terminated.

Initially, an error called: eclipse: *** No rule to make target 'Hello.o', needed by 'Hello.exe'.
So I recreated the project and tried to play again, and although the Hello World message still does not appear on the console, the error that just appeared just disappeared.

    
asked by anonymous 26.01.2018 / 16:07

1 answer

0

I do not know how things work in eclipse but I'll try to help you.

You have created a project and added the PQ.cpp file, is this file in the same project directory? if yes look at the makefile and see if it is included in it, if not try to put it in the same project folder.

What console do you refer to is the windows cmd or one of eclipse itself? because it is very strange that he generated the .exe and did not show the hello world. if it is the eclipse is probably the problem above.

The code itself is right, if you happen to want to change IDE use codeblocks.

    
26.01.2018 / 22:35