Page 1 of 1

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

Posted: Fri Sep 23, 2016 1:24 am
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.

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

Posted: Fri Sep 23, 2016 11:35 am
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)

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

Posted: Sat Sep 24, 2016 1:17 am
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.