[cfe-dev] Clang 3.1: Can't link Hello World-program program on Linux

David Chisnall csdavec at swan.ac.uk
Fri Mar 2 01:44:02 PST 2012


On 2 Mar 2012, at 08:30, Alexander Korsunsky wrote:

> "-ldl -lcxxrt --stdlib=libc++" to every compile.

You shouldn't need to do this, just link libc++ against libcxxrt (which should link against libdl on Linux).

David



More information about the cfe-dev mailing list