g++.exe: error: ECHO: No such file or directory

General questions regarding the usage of CodeLite
marcelinux
CodeLite Enthusiast
Posts: 17
Joined: Mon Nov 02, 2015 3:26 pm
Genuine User: Yes
IDE Question: C++
Location: Spain
Contact:

g++.exe: error: ECHO: No such file or directory

Post by marcelinux »

This is unusual and i'm surprised.
Windows 7
Codelite 9.2.2
TDM-GCC-64 5.1.0-2

There are some workspaces and projects running correctly.
Sudently, a new worskpace+project can't compile.
I try with default miniApp template from Codelite (executable wxWidgets enabled)
Compiler: MinGW (TDM-GCC-32) (There isn't any other)
Debugger: GNU gdb debugger
Build System: Default

F7 to compile and:

Code: Select all

C:\Windows\system32\cmd.exe /C C:/TDM-GCC-64/bin/mingw32-make.exe -j2 SHELL=cmd.exe -e -f  Makefile
"----------Building project:[ miniApp - Debug ]----------"
mingw32-make.exe[1]: Entering directory 'C:/dev/wx/miniApp'
g++.exe: error: ECHO: No such file or directory
g++.exe: error: est : No such file or directory
g++.exe: error: desactivado.: No such file or directory
C:/TDM-GCC-64/bin/g++.exe -o ./Debug/miniApp @"miniApp.txt" -L.   -mwindows  -mthreads -LC:/wxWidgets310/lib/gcc_lib -lwxmsw31u -lwxscintilla -lwxtiff -lwxjpeg -lwxpng -lwxzlib -lwxregexu -lwxexpat -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwxregexu -lwinspool -lwinmm -lshell32 -lcomctl32 -lversion -lshlwapi -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32
mingw32-make.exe[1]: *** [Debug/miniApp] Error 1
mingw32-make.exe: *** [All] Error 2
miniApp.mk:81: recipe for target 'Debug/miniApp' failed
mingw32-make.exe[1]: Leaving directory 'C:/dev/wx/miniApp'
Makefile:4: recipe for target 'All' failed
====1 errors, 0 warnings====
I come back to old project "minimal"
Can't compile. ¿what?

¿What I missed?
I compared both projects have same build settings.
I'm lost.
User avatar
eranif
CodeLite Plugin
Posts: 6372
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: g++.exe: error: ECHO: No such file or directory

Post by eranif »

Code: Select all

Sudently, a new worskpace+project can't compile.
What is the error you get?

DId you try a simple hello world executable?
For trying to check if something fundemental is working, I would test the simplest project: "hello world" (simple g++ executable)
Without wxWidgets

Also, can you please provide the generates Makefiles? (<PROJECT-NAME>.mk)
Make sure you have read the HOW TO POST thread
marcelinux
CodeLite Enthusiast
Posts: 17
Joined: Mon Nov 02, 2015 3:26 pm
Genuine User: Yes
IDE Question: C++
Location: Spain
Contact:

Re: g++.exe: error: ECHO: No such file or directory

Post by marcelinux »

OK. I found it.
In Workspace settings I added

Code: Select all

PATH=$WXWIN\lib\gcc_dll;$PATH
to the "Specify here an additional environment variables..."
And it worked.
Thank you, very very much for your work, Eran and David.
Post Reply