Problem building simple project

General questions regarding the usage of CodeLite
RaelB
CodeLite Curious
Posts: 3
Joined: Sun Dec 21, 2014 1:20 am
Genuine User: Yes
IDE Question: C++
Contact:

Problem building simple project

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

Re: Problem building simple project

Post 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
Make sure you have read the HOW TO POST thread
RaelB
CodeLite Curious
Posts: 3
Joined: Sun Dec 21, 2014 1:20 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: Problem building simple project

Post by RaelB »

Thanks for the fast reply.

I did not have clang installed.
Post Reply