Problem building my code

CodeLite installation/troubleshooting forum
DevilsCode
CodeLite Curious
Posts: 3
Joined: Thu Aug 20, 2015 5:01 am
Genuine User: Yes
IDE Question: C++
Contact:

Problem building my code

Post 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
DevilsCode
CodeLite Curious
Posts: 3
Joined: Thu Aug 20, 2015 5:01 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: Problem building my code

Post 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.
User avatar
eranif
CodeLite Plugin
Posts: 6373
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Problem building my code

Post 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
Make sure you have read the HOW TO POST thread
DevilsCode
CodeLite Curious
Posts: 3
Joined: Thu Aug 20, 2015 5:01 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: Problem building my code

Post 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.
Post Reply