Eclipse CDT: no rule to make target all

前端 未结 11 1161
野性不改
野性不改 2020-12-08 00:22

My Eclipse CDT keeps complaining \"make: *** no rule to make target all\" when I am trying to compile the piece of code below:

#include 
us         


        
11条回答
  •  南方客
    南方客 (楼主)
    2020-12-08 01:00

    If the above solutions did not work for you so -

    Could be that you did not install C++ compiler packages properly, flow this: (Instructions for Win7, 32bit/64bit)

    1. Make sure you install properly one or more of the supporting C++ compiler packages:

      • Eclipse CDT plugin (Installers page) (Installer guide)
      • MinGW package (Install Page)
      • Cygwin package (Install page)

      (I installed MinGW (HowTo Install Videos can be found on YouTube))

      In case you choose to install MinGW packages:

      • Download MinGW installer from the Install Page above
      • Run MinGW installer and make sure to choose the following packages:

        - mingw-developer-toolkit
        - mingw32-base
        - mingw32-gcc-g++
        - msys-base

      • Add MinGW and MSYS bin paths to your PATH environment variable , if you didn't change the default installation folders you should add:

      C:\MinGW\msys\1.0\bin;C:\MinGW\bin;
      • Logoff and log back in for making sure Environment vars kicked in
    2. Create a new C++ project in eclipse:

      • New -> C++ Projects
      • Choose Project type: Executables -> Hello World C++ project
        (Now on the right, under Toolchains you shall see MinGW GCC)
      • Select MinGW GCC from the Toolchains list
      • Hit Finish
    3. In you Hello World Project you shall see + src folder, and + Includes (If so you are probably good to go).

    4. Build project
    5. Run it!

提交回复
热议问题