I installed Eclipse CDT plugin and also the following packages:
I have also added paths to their bin in the PATH environment variable. Even then I am unable to compile and run any sample program in Eclipse.
How can I fix this? Thanks for your concern.
You have to use Ctrl+B to build the project. It automatically creates the binaries for you.
I even faced this error and searched a lot to fix. Fortunately, I figured it out myself.
The following are the things you need to make sure they are set:
Window > Preferences > C/C++ > New CDT project wizard > Makefile Project > Binary Parsers
a) Set it to PE Windows Parser if you are on windows.
b) Set it to Cygwin PE Parser if you are using Cygwin
c) Set it to Elf parser if you are using ubuntu
Window > Preferences > C/C++ > Build > Environment
Now click on "select" and select "Path" variable so that you add you path variables in Eclipse.
Now its all done!
All you have to do is write a test program and press Ctrl+B (Build all; there is a button on menu bar) and after that click "Run".
After all the setup is done.Go to eclipse project --> build all
or Ctrl + B then eclipse automatically build up the binaries and other stuffs now run your project
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With