Codelite failed to compile a simple program

  c++, codelite, makefile, windows

I can’t compile a simple program using Codelite. When I clean a project, I saw this in build log of Codelite:

C:Windowssystem32cmd.exe /C ""C:/Program Files/CodeBlocks/MinGW/bin/mingw32-make.exe" -j4 SHELL=cmd.exe -e -f  Makefile clean"
"----------Cleaning project:[ Test1 - Debug ]----------"
mingw32-make.exe[1]: Entering directory 'C:/Users/User/Downloads/programming/Program1/Cplusplus/Beginning-Cplusplus-programming/CodeLite/CPPWorkspace/Test1'
rm -f -r Debug/
process_begin: CreateProcess(NULL, rm -f -r Debug/, ...) failed.
make (e=2): The system cannot find the file specified.
mingw32-make.exe[1]: *** [Test1.mk:108: clean] Error 2
mingw32-make.exe[1]: Leaving directory 'C:/Users/User/Downloads/programming/Program1/Cplusplus/Beginning-Cplusplus-programming/CodeLite/CPPWorkspace/Test1'
mingw32-make.exe: *** [Makefile:8: clean] Error 2
====0 errors, 0 warnings====

And then when I go to build > run option and then build and execute I saw the following error in build log:

C:Windowssystem32cmd.exe /C ""C:/Program Files/CodeBlocks/MinGW/bin/mingw32-make.exe" -j4 SHELL=cmd.exe -e -f  Makefile"
"----------Building project:[ Test1 - Debug ]----------"
mingw32-make.exe[1]: Entering directory 'C:/Users/User/Downloads/programming/Program1/Cplusplus/Beginning-Cplusplus-programming/CodeLite/CPPWorkspace/Test1'
"C:/Program Files/CodeBlocks/MinGW/bin/g++.exe"  -c  "C:/Users/User/Downloads/programming/Program1/Cplusplus/Beginning-Cplusplus-programming/CodeLite/CPPWorkspace/Test1/main.cpp" -std=c++14 -Wall -g -O0 -Wall  -o Debug/main.cpp.o -I. -I.
Access is denied.
mingw32-make.exe[1]: *** [Test1.mk:80: Debug/Test1] Error 1
mingw32-make.exe[1]: Leaving directory 'C:/Users/User/Downloads/programming/Program1/Cplusplus/Beginning-Cplusplus-programming/CodeLite/CPPWorkspace/Test1'
mingw32-make.exe: *** [Makefile:5: All] Error 2
====0 errors, 0 warnings====

and I saw this in output log this in output log:

Working directory is set to: C:UsersUserDownloadsprogrammingProgram1CplusplusBeginning-Cplusplus-programmingCodeLiteCPPWorkspaceTest1
Executing: cmd /C  call C:UsersUserDownloadsprogrammingProgram1CplusplusBeginning-Cplusplus-programmingCodeLiteCPPWorkspaceTest1DebugTest1 && pause
Program exited

And here is my simple code:

#include <iostream>

int main(){
    std::cout << "Hello testing...";
    return 0;
}

Source: Windows Questions

One Reply to “Codelite failed to compile a simple program”

LEAVE A COMMENT