clang on Ubuntu trusty: install & launch

Hello CFE listers

Can someone explain me

1/ how to install properly clang on Ubuntu trusty?

2/ How to launch clang properly on Ubuntu trusty with the "good" options for the c++ library?

Thank in advance because I am lost.

zos

Hello zosrothko,

This is the wrong list to ask such questions.
The cfe-dev mailing list is for discussions about developing clang
(i.e. people who work on making clang).
Questions about how to use clang should be sent to cfe-users@lists.llvm.org>

Hello CFE listers

Can someone explain me

1/ how to install properly clang on Ubuntu trusty?

Have you tried the following?

sudo apt-get install clang

2/ How to launch clang properly on Ubuntu trusty with the "good" options for
the c++ library?

This question isn't precise enough to allow a useful answer. What do
you mean by "good options for the c++ library" ?
What have you tried? What did you expect? What happened instead?

Csaba

From: cfe-dev [mailto:cfe-dev-bounces@lists.llvm.org] On Behalf Of Csaba
Raduly via cfe-dev
Sent: Monday, July 31, 2017 2:16 AM
To: zosrothko
Cc: cfe-dev
Subject: Re: [cfe-dev] clang on Ubuntu trusty: install & launch

Hello zosrothko,

This is the wrong list to ask such questions.
The cfe-dev mailing list is for discussions about developing clang
(i.e. people who work on making clang).
Questions about how to use clang should be sent to cfe-
users@lists.llvm.org>

> Hello CFE listers
>
> Can someone explain me
>
> 1/ how to install properly clang on Ubuntu trusty?
>

Have you tried the following?

sudo apt-get install clang

> 2/ How to launch clang properly on Ubuntu trusty with the "good" options
for
> the c++ library?

This question isn't precise enough to allow a useful answer. What do
you mean by "good options for the c++ library" ?
What have you tried? What did you expect? What happened instead?

I suspect you are finding that "clang foo.cpp" gives linker errors.
If instead you use "clang++ foo.cpp" then probably that will solve it.
--paulr

Ok, but I have trouble making clang working well on Ubuntu trusty and there are such discrepancies I wanted to have the view of developpers. You’r right, the question was more or less open… So below is what is happening. 1/ With this configuration the compiler emits this error