Page 1 of 1

Problem building my code

Posted: Thu Aug 20, 2015 5:07 am
by DevilsCode
Hi,

This seems similar to another thread recently posted, but the errors are different. I try to build and always get the same errors. I've checked my paths and everything seems to be there. I've really gotta get this thing fixed so I can move forward this semester. I am new to this, so any simplified help will definitely go a long way. Thanks for any help.

edit: I forgot to say I have version 8.2.1

Code: Select all

C:\WINDOWS\system32\cmd.exe /C C:/MinGW/bin/mingw32-make.exe -j8 SHELL=cmd.exe -e -f  Makefile
"----------Building project:[ HelloWorld - Debug ]----------"
mingw32-make.exe[1]: Entering directory 'C:/CS3304/MyWorkspace/HelloWorld'
C:/MinGW/bin/g++.exe  -c  "C:/CS3304/MyWorkspace/HelloWorld/main.cpp" -g -O0 -Wall  -o ./Debug/main.cpp.o -I. -I.
g++.exe: error: CreateProcess: No such file or directory
mingw32-make.exe[1]: *** [Debug/main.cpp.o] Error 1
HelloWorld.mk:97: recipe for target 'Debug/main.cpp.o' failed
mingw32-make.exe[1]: Leaving directory 'C:/CS3304/MyWorkspace/HelloWorld'
mingw32-make.exe: *** [All] Error 2
Makefile:4: recipe for target 'All' failed
1 errors, 0 warnings

Re: Problem building my code

Posted: Thu Aug 20, 2015 6:32 am
by DevilsCode
Ok I uninstalled MinGW and codelite and started fresh. It seems I now can get this to compile correctly. I watched some youtube video where I had to edit something in the cmd prompt and now it works. Not sure if that did it or what. But it works.

Re: Problem building my code

Posted: Thu Aug 20, 2015 6:50 pm
by eranif
I suspect that it has to do with the MinGW version you are using.
Where did you get it from? After re-installing, did you install a different version?

Eran

Re: Problem building my code

Posted: Fri Aug 21, 2015 1:21 am
by DevilsCode
No I ended up downloading the same version. But the second time around I ended up putting my workspace inside of the codelite folder and I had no more errors. It was purely by accident that it was put there, but ended up no giving me any errors with directory. I am still really new with this, so I could be way off. But that is the olny thing that was changed.