Page 1 of 1

Help with codelite + TDM mingw

Posted: Sat Apr 13, 2013 4:45 am
by DarkMage64
I already set the environment variables in the default field with PATH=C:\MinGW64\bin;$(PATH). Single test file projects work find, but when it uses the debugger it displays : "no executable specified, use 'target exec'".

Re: Help with codelite + TDM mingw

Posted: Sat Apr 13, 2013 8:40 am
by eranif
Open the project settings -> Common Settings -> General
and make sure that the "Program to Debug / Run" is set properly.

Next time, please make sure you read this before posting

Eran

Re: Help with codelite + TDM mingw

Posted: Sun Apr 14, 2013 11:13 am
by DarkMage64
Thank you,

My OS is Windows 7 64 and I'm using CodeLite 5.1 . I'm using TDM64 - gcc -4.7.1-3. I get this as my build output

Code: Select all

C:\Windows\system32\cmd.exe /c "mingw32-make.exe -j 4 -e -f  "test_wsp.mk""
'mingw32-make.exe' is not recognized as an internal or external command,
operable program or batch file.
When I run the debugger, I get no executable specified. Anyway, I'm not sure what to set for in the "program to run" fields.

Re: Help with codelite + TDM mingw

Posted: Sun Apr 14, 2013 11:59 am
by eranif
DarkMage64 wrote:When I run the debugger, I get no executable specified.
If you can't build it - then this is the problem...
DarkMage64 wrote:My OS is Windows 7 64 and I'm using CodeLite 5.1 . I'm using TDM64 - gcc -4.7.1-3. I get this as my build output
CODE: SELECT ALL
C:\Windows\system32\cmd.exe /c "mingw32-make.exe -j 4 -e -f  "test_wsp.mk""
'mingw32-make.exe' is not recognized as an internal or external command,
operable program or batch file.
It seems like codelite can not find your mingw32-make
I assume you installed MinGW manually (since I don't provide TDM64-gcc)

So you need to make sure for 2 things here:

1) Make sure that the MinGW64 bin directory is in your path, do this from codelite's menu bar:
Settings -> Environment variables
Add this line:

Code: Select all

PATH=C:\Path\To\MinGW64\bin;$PATH
Ofc, replace C:\Path\To\MinGW64 with the actual path

2) Since you are using mingw64 - I am not sure that mingw32-make exists in its bin directory, so you need to change it so the actual make, from what I have read
it should be mingw64-make.exe

To change it, do it from codelite's menu bar:
Settings -> Build Settings -> Compilers -> gnu g++ -> Tools -> Make
and change mingw32-make with the proper tool

Eran