Home > Software engineering >  Codelite not running C programs
Codelite not running C programs

Time:06-01

Everytime I try to build and run a program, including the standard 'Hello world!' nothing happens, I get:

==== Program exited with exit code: 0 ==== Time elapsed: 000:00.000 (MM:SS.MS) Press any key to continue...

At the bottom it says:

'ming32-make' is not recognized as an internal or external command, operable prgram or batch file.

I have Codelite version 16 on Windows 10. I also have MinGW installed to C: and have edited the Environment variables to include C:\MinGW\bin

However, in command prompt gcc --version shows me the gcc version in C:\Users\me> and not C:\MinGW

I don't know if this is relevant or not.

All the other results seem to suggest a compiler not found problem, but this does not seem to be my case. Thanks in advance.

This is what I have installed at the moment. Can I get 'make'from one of the other files?

The Installed files

CodePudding user response:

Looks like you either don't have ming32-make.exe or it can't be found.

Also I notice you still use old MinGW. I would recommend switching to newer MinGW-w64 (which supports both Windows 32-bit and 64-bit).

The standalone build from https://winlibs.com/ does include ming32-make.exe, and since you can just unzip it (no installation needed) you can try it without removing the old MinGW. Just make sure you don't have anything in your PATH variable to avoid running programs from the wrong location.

CodePudding user response:

ming32-make.exe is either not installed or can't be found on your Environment variable PATH.

No, there is no mingw32-make in that bin folder. When I used the Installer originally I only selected: mingw32-gcc-g -bin although there were other bin files. Where can I get it?

mingw32-make is outdated.

See How to compile makefile using MinGW?

If you are having problems with mingw, I would recommend using MSYS2 or a package manager like Chocolatey.

Just get rid of the previous installation first. Not mandatory but prevents confusion and storage drain due to multiple copies of mingw.

To install MinGw using chocolatey, run cmd as admin and use

choco install mingw

For make

choco install make

CodePudding user response:

What worked for me was also installing mingw32-base-bin from the Installer (see second option in image in the original question). The installation tutorial I was following did not mention installing this. I've decided to leave this here as an answer in case someone else runs into a similar problem.

  • Related