llvmc: Can't find program 'llvm-g++'

I am getting this error while using the command “llvmc -O3 -Wall hello.cpp” where hello.cpp is some cpp file on my machine. llvmc is the driver calling a bunch of tools like llvm-g++, opt, llc etc. I think the llvmc tool could not probably locate the llvm-g++ tool. I would like to know where should I specify the path to llvm-g++ for llvmc to find them. Also can someone give me the link to some tutorial on llvmc because i couldn’t find it on llvm.org webpage. My llvmc is in /llvm/tools/llvmc. While llvm-g++ is inside /llvm/Debug/bin/.

Hi Himanshu Shekhar, I don't know the answer to your question, I'm just writing
to point out that llvmc has been removed from the development version of LLVM.

Ciao, Duncan.

Hello

I am getting this error while using the command "llvmc -O3 -Wall hello.cpp"
where hello.cpp is some cpp file on my machine. llvmc is the driver calling
a bunch of tools like llvm-g++, opt, llc etc. I think the llvmc tool could
not probably locate the llvm-g++ tool. I would like to know where should I
specify the path to llvm-g++ for llvmc to find them.

iirc llvmc looked inside PATH

Also can someone give
me the link to some tutorial on llvmc because i couldn't find it on llvm.org
webpage.

Yes, llvmc was removed from mainline.

My llvmc is in /llvm/tools/llvmc. While llvm-g++ is inside /llvm/Debug/bin/.

Ok, then you should add /llvm/Debug/bin to your PATH