Getting Started with Eclipse CDT

I downloaded the latest version of Eclipse CDT (Helios) and wanted to try my luck with some C ++ programming (did not do this at the age).

I tried to execute the "Hello World" project, but I got stuck pretty quickly. First: #include <stdio.h>and #include <stdlib.h>marked with the warning "Unresolved Symbol". So I found a place where I can add include paths, and pointed it to these headers from the Visual Studio installation that I have.

After that, he looked great, but:

  • I do not see compilation errors / warnings on the Problems tab .
  • I can't run the code - I get "Launch failed". Binary Error Not Found

My question is simple - what are the steps I actually take to make my code compiled, linked, and executed? I tried to find it on the Eclipse website, but did not find a link to it.

+3
source share
3 answers

I assume you are running on Windows because this particular error seems to be related to windows.

It seems to you that the basic tooling necessary for the CDT to create a project is missing. You need some files before you get started . I suggest the mingw installer, as it is simple, and allows you to create Windows-compatible binaries.

Check the link above and then make sure your project is linked to the toolchain. Hope this helps.

+1

:

  • β†’ β†’ ++
  • , Hello World c++ Project Project Type Finish.
  • β†’ β†’ ++ ( Run ).
0

I got the same error until I ran the Build All command. This command created two new folders: Debug and Release. Then, when I clicked on the Debug button, he asked me which one I wanted to run, and I selected Debug, and it worked fine.

It seems that the binary file that he could not find was created from the "Create All" command.

0
source

Source: https://habr.com/ru/post/1775198/


All Articles