Page 1 of 1

How to build a project with clang?

Posted: Thu Nov 28, 2019 1:03 am
by starcrescent
I have install both MinGW64 x64 and LLVM 9.0 they show up at Build Settings.
MinGW compiles fine with CodeLite Make Generator.
However, when I swich to clang from project settings CodeLite Make Generator fails to build the project.
"clang++: warning: unable to find a Visual Studio installation; try running Clang from a developer command prompt [-Wmsvc-not-found]"
I installed Build Tools for Visual Studio 2019 nothing changed.
I switched to NMakefile for MSVS toolset. It did not build either.
"clang++: error: no such file or directory: 'Debugmain.c.o'
clang++: error: no input files"
I installed Cmake swithed the makefile generator and configured it through the plugin
"System cannot find the specified path"

I looked through the forum, wiki, github and stack overflow but all related info is like 5-6 years old.

Is there a guied to setup makefile generator for clang ?

Thanks.