[cfe-dev] clang cannot find standard template library

Eric Christopher echristo at apple.com
Tue Jun 15 13:59:39 PDT 2010


On Jun 15, 2010, at 1:47 PM, Pål Dahle wrote:

> On 06/15/2010 05:24 PM, Bruce Stephens wrote:
>> Pål Dahle<pal.dahle-+dScP4IL3Ug at public.gmane.org>  writes:
>> 
>> [...]
>> 
>>> nebuchadnezzar:/opt/project/Cohiba/trunk/cohiba/tmp$ clang test.cpp
>> 
>> Try
>> 
>> 	clang++ test.cpp
>> 
>> [...]
> 
> Thanks for your reply. Unfortunately this didn't help.
> 
> nebuchadnezzar:~$ clang++
> clang++: command not found
> nebuchadnezzar:~$ apt-cache search clang++
> clang - Low-Level Virtual Machine (LLVM), C language family frontend
> 
> 
> Anyway, I found a solution online
> 
> clang -emit-llvm -c file.c && llvm-ld file.o
> 
> So I am supposed to use llvm-ld for linking and not clang.

Uh no.  You really want clang++.  I don't know what's wrong with your
package, but if you download and compile the sources from llvm.org
you'll have a clang++.

-eric



More information about the cfe-dev mailing list