[cfe-dev] clang cannot find standard template library
Pål Dahle
pal.dahle at nr.no
Tue Jun 15 13:47:01 PDT 2010
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.
Thanks again
Pål
More information about the cfe-dev
mailing list