Error Code 2

CodeLite installation/troubleshooting forum
Ali_Hassan_
CodeLite Curious
Posts: 3
Joined: Tue May 25, 2021 10:08 pm
Genuine User: Yes
IDE Question: C++
Contact:

Error Code 2

Post by Ali_Hassan_ »

Code: Select all

C:/MinGW/bin/mingw32-make.exe -j4 SHELL=cmd.exe -e -f  Makefile
"----------Building project:[ C++_WorkSpace - Debug ]----------"
mingw32-make.exe[1]: Entering directory 'C:/Users/ali/Documents/C++ Training/C++_WorkSpace/C++_WorkSpace'
C:/MinGW/bin/gcc.exe -c  "C:/Users/ali/Documents/C++ Training/C++_WorkSpace/C++_WorkSpace/main.c" -g -O0 -Wall  -o /Users/ali/Documents/C++\ Training/C++_WorkSpace"/build-Debug//Users/ali/Documents/C++\ Training/C++_WorkSpace/C++_WorkSpace/main.c.o -I. -I.
gcc.exe: error: Training/C++_WorkSpace/build-Debug//Users/ali/Documents/C++\ Training/C++_WorkSpace/C++_WorkSpace/main.c.o -I. -I. : No such file or directory
mingw32-make.exe[1]: *** [../build-Debug/C++_WorkSpace/main.c.o] Error 1
C++_WorkSpace.mk:97: recipe for target '../build-Debug/C++_WorkSpace/main.c.o' failed
mingw32-make.exe[1]: Leaving directory 'C:/Users/ali/Documents/C++ Training/C++_WorkSpace/C++_WorkSpace'
mingw32-make.exe: *** [All] Error 2
Makefile:4: recipe for target 'All' failed
====1 errors, 0 warnings====
User avatar
eranif
CodeLite Plugin
Posts: 6367
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Error Code 2

Post by eranif »

Can you try and create the workspace in a folder without spaces in its path?

Make sure you have read the HOW TO POST thread
Ali_Hassan_
CodeLite Curious
Posts: 3
Joined: Tue May 25, 2021 10:08 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Error Code 2

Post by Ali_Hassan_ »

eranif wrote: Tue May 25, 2021 10:40 pm

Can you try and create the workspace in a folder without spaces in its path?

i just created a new workspace and tried to run the same code and it worked

Ali_Hassan_
CodeLite Curious
Posts: 3
Joined: Tue May 25, 2021 10:08 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Error Code 2

Post by Ali_Hassan_ »

it seems I was trying to write a c program by selecting the g++ plugin. I am just getting started with the programming that's why don't know much about plugins and stuff.

Post Reply