72184

Eclipse CDT build error: make not in path

I just recently(actually today) started using Eclipse CDT for windows. Created a project, a test C file(Hello World) added to project. Build the project, I got error as below.

Error: Program make is not found in Path -

So then I read that Eclipse CDT needs Mingw/MSYS, which I did install. Now i See that there is make.exe in

C:\MinGW\msys\1.0\bin

But Since I dont have administrator privileges, I could not add this folder containing make to the Path system variable on Windows. (I am not likely to get administrator privileges)

Now how do I work around this error to build and use CDT on windows? Any Project settings for Eclipse CDT which if added the path to make could help resolve this?

Answer1:

Was able to get a fix around this problem.

Added the correct paths for two exes - make and gcc/g++ (installed by Mingw/Ansys) to the <strong>User environment variable Path</strong> (Was not allowed to edit <strong>System variable Path</strong>).

But adding these paths to <strong>User environment variable Path</strong> also helped to resolve this. Now Eclipse CDT built and executed the code fine.

Answer2:

<ol> <li>check environment variable path has c:/cygwin/bin or c:/mingw/bin or wherever u installed it</li> <li>if makefile name is mingw32-make.exe or something else , make a copy and rename that to make.exe</li> </ol>

Answer3:

The problem is simply that your IDE need to know where is the place of GNU Binary Utilities so how to deal with that simple go to

Windows -> preference -> C/C++ -> new c++ project wizerd -> makefile

<img src=https://www.e-learn.cn/content/wangluowenzhang/"https://i.stack.imgur.com/vW3ae.jpg" alt="first">

then chose what are u instal for example I use MinGW so now I will chose GUN elf parse and now I need the location for c++ filt :D <img src=https://www.e-learn.cn/content/wangluowenzhang/"https://i.stack.imgur.com/8t4Mh.jpg" alt="enter image description here"> you will go to place where u install minGW in default it will be C:\MinGW <img src=https://www.e-learn.cn/content/wangluowenzhang/"https://i.stack.imgur.com/aG9sB.jpg" alt="second">

and search for c++ filt.exe :D and now u done :D

and you can install minGW from http://www.mingw.org/

Answer4:

Also after adding C:\MinGW\bin to PATH variable. Make sure your new project is created with MinGW GCC toolchain as shown below. <img src=https://www.e-learn.cn/content/wangluowenzhang/"https://i.stack.imgur.com/AsChO.png" alt="enter image description here">

Recommend

  • How to run perl script from any where (any directory)
  • Modifying $PATH for PHP system() calls
  • make m4 see macro when macro ends with same character as string following macro
  • Netezza Incremental load from Sql server using SSIS
  • Deduce parent class of inherited method in C++
  • HttpListener.IsSupported is false on XP SP3
  • import scipy.sparse failed
  • Does Apportable support to build library binary (.a/.so)?
  • Hide HTML elements without javascript, only CSS
  • cygwin cannot exec 'git-add--interactive' permission denied
  • Jenkins: FATAL: Could not initialize class hudson.util.ProcessTree$UnixReflection
  • How do I access an unhandled exception in an MVC Error view?
  • Transactional Create with Validation in ServiceStack Redis Client
  • Switching to Release Build causes runtime error in Web Reference
  • Change Inet root folder for iis 7
  • Paperclip, set path outside of rails root folder
  • Installing Hadoop, Java Exception about illegal characters at index 7?
  • Sony Xperia Z Tablet not found by adb
  • Javascript convert timezone issue
  • Convert array of 8 bytes to signed long in C++
  • Why is the timeout on a windows udp receive socket always 500ms longer than set by SO_RCVTIMEO?
  • Weird JavaScript statement, what does it mean?
  • Timeout for blocking function call, i.e., how to stop waiting for user input after X seconds?
  • How do you troubleshoot character encoding problems?
  • QuartzCore.framework for Mono Develop
  • R: gsub and capture
  • jqPlot EnhancedLegendRenderer plugin does not toggle series for Pie charts
  • How to format a variable of double type
  • VB.net deserialize, JSON Conversion from type 'Dictionary(Of String,Object)' to type '
  • Comma separated Values
  • Windows forms listbox.selecteditem displaying “System.Data.DataRowView” instead of actual value
  • Proper folder structure for lots of source files
  • Load html files in TinyMce
  • How do you join a server to an Active Directory (domain)?
  • -fvisibility=hidden not passed by compiler for Debug builds
  • How does Linux kernel interrupt the application?
  • Append folder name and increment by 1 using batch script
  • How to Embed XSL into XML
  • Net Present Value in Excel for Grouped Recurring CF
  • How to load view controller without button in storyboard?