[cfe-dev] libcxx install location?

Larry Evans cppljevans at suddenlink.net
Sat Feb 5 02:51:52 PST 2011

After failing to use libstdc++:
I tried to understand how to use libc++:
Although that libcxx page mentions:
  clang++ -stdlib=libc++ test.cpp
there's no mention of this opton here:
Also, that libcxx page makes no mention of:
However, seeing:
  LIBCXX_SRC_ROOT := $(LLVM_SRC_ROOT)/projects/libcxx
  CPP.Flags := -nostdinc++ -I$(LIBCXX_SRC_ROOT)/include
in that Makefile, suggests that maybe one option is to install libcxx
below my svn working directory:
with something like:
  svn co http://llvm.org/svn/llvm-project/libcxx/trunk libcxx
from within that svn working directory.  In that case, would there be
any need for the -stdlib=libc++ option to clang++?  But then what
arguments should I pass ~/download/llvm/svn/llvm/configure to cause
the libcxx library to be built? Grepping that configure for libcxx
showed nothing.

TIA for any help.


More information about the cfe-dev mailing list