Page 1 of 1

Error Code 2

Posted: Tue May 25, 2021 10:13 pm
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====

Re: Error Code 2

Posted: Tue May 25, 2021 10:40 pm
by eranif

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


Re: Error Code 2

Posted: Tue May 25, 2021 10:50 pm
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


Re: Error Code 2

Posted: Tue May 25, 2021 10:57 pm
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.