Lines Matching +full:- +full:nostdinc
13 .. code-block:: bash
15 $ clang++ -stdlib=libc++ test.cpp
16 $ clang++ -std=c++11 -stdlib=libc++ test.cpp
19 and the ``-stdlib=libc++`` is not required.
26 .. code-block:: bash
28 $ clang++ -std=c++11 -stdlib=libc++ -nostdinc++ \
29 -I<libcxx-install-prefix>/include/c++/v1 \
30 -L<libcxx-install-prefix>/lib \
31 -Wl,-rpath,<libcxx-install-prefix>/lib \
34 The option ``-Wl,-rpath,<libcxx-install-prefix>/lib`` adds a runtime library
36 ``<libcxx-install-prefix>/lib`` whenever the program is run. Alternatively the
42 .. code-block:: bash
44 $ clang++ -stdlib=libc++ -nostdinc++ \
45 -I<libcxx-install-prefix>/include/c++/v1
46 -L<libcxx-install-prefix>/lib \
47 test.cpp -o
49 $ export LD_LIBRARY_PATH=<libcxx-install-prefix>/lib
58 required to link ``-lc++fs``.
75 headers may be required to link ``-lc++experimental``.
77 .. code-block:: bash
79 $ clang++ -std=c++14 -stdlib=libc++ test.cpp -lc++experimental
101 On Linux libc++ can typically be used with only '-stdlib=libc++'. However
103 If you are running into linker errors when using libc++ try adding '-lc++abi'
106 .. code-block:: bash
108 $ clang++ -stdlib=libc++ test.cpp -lc++ -lc++abi -lm -lc -lgcc_s -lgcc
113 .. code-block:: bash
115 $ clang++ -stdlib=libc++ test.cpp -lc++abi
119 ---------------------
125 using ``-nostdinc++`` and to not link libstdc++.so using ``-nodefaultlibs``.
127 Note that ``-nodefaultlibs`` removes all of the standard system libraries and
130 .. code-block:: bash
132 $ g++ -nostdinc++ -I<libcxx-install-prefix>/include/c++/v1 \
133 test.cpp -nodefaultlibs -lc++ -lc++abi -lm -lc -lgcc_s -lgcc
137 ------------------------------
139 GDB does not support pretty-printing of libc++ symbols by default. Unfortunately
140 libc++ does not provide pretty-printers itself. However there are 3rd
146 * `Koutheir's libc++ pretty-printers <https://github.com/koutheir/libcxx-pretty-printers>`_.
157 See :ref:`using-debug-mode` for more information.
160 This macro is used to enable -Wthread-safety annotations on libc++'s
176 This macro is used to re-enable an extension in `std::tuple` which allowed
180 .. code-block:: cpp
188 may be defined to re-enable it in order to support existing code that depends
192 Note: The "reduced-arity-initialization" extension is still offered but only
195 .. code-block:: cpp
221 headers, since they may not always be available in cross-compilation setups,
229 expecting a non-replaced `operator new[]` to call the replaced `operator new`.
252 -----------------------------------
254 This macro is used to re-enable all the features removed in C++17. The effect
258 This macro is used to re-enable the `set_unexpected`, `get_unexpected`, and
262 This macro is used to re-enable `std::auto_ptr` in C++17.
265 ------------------------------------
281 ------------------------------------------
300 Users may also opt-out of additional applications ``[[nodiscard]]`` using