• Home
  • Raw
  • Download

Lines Matching refs:libc

2 Using libc++
11 If you already have libc++ installed you can use it with clang.
15 $ clang++ -stdlib=libc++ test.cpp
16 $ clang++ -std=c++11 -stdlib=libc++ test.cpp
18 On OS X and FreeBSD libc++ is the default standard library
19 and the ``-stdlib=libc++`` is not required.
23 If you want to select an alternate installation of libc++ you
28 $ clang++ -std=c++11 -stdlib=libc++ -nostdinc++ \
35 search path. Meaning that the systems dynamic linker will look for libc++ in
44 $ clang++ -stdlib=libc++ -nostdinc++ \
48 $ ./a.out # Searches for libc++ in the systems library paths.
50 $ ./a.out # Searches for libc++ along LD_LIBRARY_PATH
52 Using libc++experimental and ``<experimental/...>``
56 in a separate library, ``libc++experimental.a``. Users of ``<experimental/...>``
61 $ clang++ -std=c++14 -stdlib=libc++ test.cpp -lc++experimental
63 Libc++experimental.a may not always be available, even when libc++ is already
64 installed. For information on building libc++experimental from source see
66 :ref:`libc++experimental CMake Options <libc++experimental options>`.
73 * The contents of the ``<experimental/...>`` headers and ``libc++experimental.a``
77 Using libc++ on Linux
80 On Linux libc++ can typically be used with only '-stdlib=libc++'. However
81 some libc++ installations require the user manually link libc++abi themselves.
82 If you are running into linker errors when using libc++ try adding '-lc++abi'
87 $ clang++ -stdlib=libc++ test.cpp -lc++ -lc++abi -lm -lc -lgcc_s -lgcc
89 Alternately, you could just add libc++abi to your libraries list, which in
94 $ clang++ -stdlib=libc++ test.cpp -lc++abi
97 Using libc++ with GCC
100 GCC does not provide a way to switch from libstdc++ to libc++. You must manually
115 GDB Pretty printers for libc++
118 GDB does not support pretty-printing of libc++ symbols by default. Unfortunately
119 libc++ does not provide pretty-printers itself. However there are 3rd
121 supported by libc++ they may be useful to users.
125 * `Koutheir's libc++ pretty-printers <https://github.com/koutheir/libcxx-pretty-printers>`_.
132 or disable extended libc++ behavior, including enabling "debug mode" or
139 This macro is used to enable -Wthread-safety annotations on libc++'s
144 This macro is used to disable all visibility annotations inside libc++.
145 Defining this macro and then building libc++ with hidden visibility gives a
146 build of libc++ which does not export any symbols, which can be useful when
161 Since libc++ 4.0 this extension has been disabled by default. This macro
177 This macro disables the additional diagnostics generated by libc++ using the