Page 1 of 1

Problem building simple project

Posted: Sun Dec 21, 2014 3:16 pm
by RaelB
Hi,

I installed CodeLIte 6.1.1

Created a "Simple Executable (clang)".

Then try to build project.

I get this error:

Code: Select all

C:\Windows\system32\cmd.exe /c "mingw32-make.exe -j 4 -e -f  Makefile"
"----------Building project:[ Project1 - Debug ]----------"
mingw32-make.exe[1]: Entering directory 'C:/Downloads_P/Cpp/CodeLite/DefaultWorkspace/Project1'
clang -c  "C:/Downloads_P/Cpp/CodeLite/DefaultWorkspace/Project1/main.c" -g -O0 -Wall  -o ./Debug/main.c.o -I. -I.
'clang' is not recognized as an internal or external command,
operable program or batch file.
mingw32-make.exe[1]: *** [Debug/main.c.o] Error 1
Project1.mk:94: recipe for target 'Debug/main.c.o' failed
mingw32-make.exe[1]: Leaving directory 'C:/Downloads_P/Cpp/CodeLite/DefaultWorkspace/Project1'
mingw32-make.exe: *** [All] Error 2
Makefile:4: recipe for target 'All' failed
0 errors, 0 warnings
I selected to install MinGW to this folder:
C:\Downloads_P\Cpp\MinGW-4.8.1\

and I added this path "C:\Downloads_P\Cpp\MinGW-4.8.1\bin" to the user PATH variable

What is wrong?

Thanks
Rael

Re: Problem building simple project

Posted: Sun Dec 21, 2014 3:30 pm
by eranif

Code: Select all

'clang' is not recognized as an internal or external command,
Do you have clang installed?

To fix this:
- Install clang form here: http://llvm.org/releases/3.5.0/LLVM-3.5.0-win32.exe
- Let codelite detect it: settings->build settings->compilers->add compiler button->scan computer for installed compilers (codelite should detect it)
- Build your project

Eran

Re: Problem building simple project

Posted: Sun Dec 21, 2014 4:32 pm
by RaelB
Thanks for the fast reply.

I did not have clang installed.