summaryrefslogtreecommitdiff
path: root/devdocs/gcc~13/standard-libraries.html
diff options
context:
space:
mode:
Diffstat (limited to 'devdocs/gcc~13/standard-libraries.html')
-rw-r--r--devdocs/gcc~13/standard-libraries.html6
1 files changed, 6 insertions, 0 deletions
diff --git a/devdocs/gcc~13/standard-libraries.html b/devdocs/gcc~13/standard-libraries.html
new file mode 100644
index 00000000..ec7ab4be
--- /dev/null
+++ b/devdocs/gcc~13/standard-libraries.html
@@ -0,0 +1,6 @@
+<div class="section-level-extent" id="Standard-Libraries"> <div class="nav-panel"> <p> Next: <a href="disappointments" accesskey="n" rel="next">Disappointments and Misunderstandings</a>, Previous: <a href="fixed-headers" accesskey="p" rel="prev">Fixed Header Files</a>, Up: <a href="trouble" accesskey="u" rel="up">Known Causes of Trouble with GCC</a> [<a href="index#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="indices" title="Index" rel="index">Index</a>]</p> </div> <h1 class="section" id="Standard-Libraries-1"><span>14.5 Standard Libraries<a class="copiable-link" href="#Standard-Libraries-1"> ¶</a></span></h1> <p>GCC by itself attempts to be a conforming freestanding implementation. See <a class="xref" href="standards">Language Standards Supported by GCC</a>, for details of what this means. Beyond the library facilities required of such an implementation, the rest of the C library is supplied by the vendor of the operating system. If that C library doesn’t conform to the C standards, then your programs might get warnings (especially when using <samp class="option">-Wall</samp>) that you don’t expect. </p> <p>For example, the <code class="code">sprintf</code> function on SunOS 4.1.3 returns <code class="code">char *</code> while the C standard says that <code class="code">sprintf</code> returns an <code class="code">int</code>. The <code class="code">fixincludes</code> program could make the prototype for this function match the Standard, but that would be wrong, since the function will still return <code class="code">char *</code>. </p> <p>If you need a Standard compliant library, then you need to find one, as GCC does not provide one. The GNU C library (called <code class="code">glibc</code>) provides ISO C, POSIX, BSD, SystemV and X/Open compatibility for GNU/Linux and HURD-based GNU systems; no recent version of it supports other systems, though some very old versions did. Version 2.2 of the GNU C library includes nearly complete C99 support. You could also ask your operating system vendor if newer libraries are available. </p> </div><div class="_attribution">
+ <p class="_attribution-p">
+ &copy; Free Software Foundation<br>Licensed under the GNU Free Documentation License, Version 1.3.<br>
+ <a href="https://gcc.gnu.org/onlinedocs/gcc-13.1.0/gcc/Standard-Libraries.html" class="_attribution-link">https://gcc.gnu.org/onlinedocs/gcc-13.1.0/gcc/Standard-Libraries.html</a>
+ </p>
+</div>