2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / libstdc++-v3 / docs / html / 17_intro / license.html
blob5d815f8fe3c1d827c296e075b1ba7545323c92e6
1 <?xml version="1.0" encoding="ISO-8859-1"?>
2 <!DOCTYPE html
3 PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
6 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7 <head>
8 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
9 <meta name="AUTHOR" content="pme@gcc.gnu.org (Phil Edwards)" />
10 <meta name="KEYWORDS" content="libstdc++, license, licence" />
11 <meta name="DESCRIPTION" content="Copying restrictions for libstdc++." />
12 <meta name="GENERATOR" content="vi and eight fingers" />
13 <title>libstdc++-v3 copying</title>
14 <link rel="StyleSheet" href="../lib3styles.css" type="text/css" />
15 <link rel="Start" rev="Copyright" href="../documentation.html" type="text/html"
16 title="GNU C++ Standard Library" />
17 </head>
18 <body>
20 <h1 class="centered"><a name="top">Licenses for the Library</a></h1>
22 <p>There are two licenses affecting GNU libstdc++-v3: one for the code, and
23 one for the documentation. Here we will describe both of them, and try
24 to answer some of the widespread questions. If you have more questions,
25 ask the FSF or the
26 <a href="http://gcc.gnu.org/lists.html">gcc mailing list</a>; the person
27 writing this page is a programmer, not a lawyer.
28 </p>
30 <hr />
32 <h2>The Code: Runtime GPL</h2>
34 <p>The source code of libstdc++-v3 is distributed under version 2 of the
35 <a href="COPYING">GNU General Public License</a>, with the so-called
36 &quot;runtime exception,&quot; as follows (or see any header or
37 implementation file):
38 </p>
39 <pre>
40 As a special exception, you may use this file as part of a free software
41 library without restriction. Specifically, if other files instantiate
42 templates or use macros or inline functions from this file, or you compile
43 this file and link it with other files to produce an executable, this
44 file does not by itself cause the resulting executable to be covered by
45 the GNU General Public License. This exception does not however
46 invalidate any other reasons why the executable file might be covered by
47 the GNU General Public License.
48 </pre>
50 <p>Hopefully that text is self-explanatory. If it isn't, you need to speak
51 to your lawyer, or the Free Software Foundation.
52 </p>
54 <!-- Most of the Q&A's are based on, paraphrased from, and outright stolen
55 from this thread:
56 http://gcc.gnu.org/ml/libstdc++/2000-q2/subjects.html#00050
57 -->
58 <p><strong>Q: So any program which uses libstdc++ falls under the GPL?</strong>
59 <br />A: <strong>No.</strong> The special exception permits use of the
60 library in proprietary applications.
61 </p>
63 <p><strong>Q: How is that different from the GNU {Lesser,Library}
64 GPL?</strong>
65 <!-- Quoting Jason Merrill from the thread above: -->
66 <br />A: The LGPL requires that users be able to replace the LGPL code with a
67 modified version; this is trivial if the library in question is a C
68 shared library. But there's no way to make that work with C++, where
69 much of the library consists of inline functions and templates, which
70 are expanded inside the code that uses the library. So to allow people
71 to replace the library code, someone using the library would have to
72 distribute their own source, rendering the LGPL equivalent to the GPL.
73 </p>
75 <p><strong>Q: I see. So, what restrictions <em>are</em> there on
76 programs that use the library?</strong>
77 <br />A: None. We encourage such programs to be released as open source,
78 but we won't punish you or sue you if you choose otherwise.
79 </p>
81 <hr />
83 <h2>The Docs: FDL</h2>
85 <p>The documentation shipped with the library and made available over the
86 web, including the pages generated from source comments, are copyrighted
87 by the Free Software Foundation, and placed under
88 the <a href="COPYING.DOC">GNU Free Documentation License version 1.1</a>.
89 There are no Front-Cover Texts, no Back-Cover Texts, and
90 <!-- as far as I know -->
91 no Invariant Sections.
92 </p>
94 <p>If you plan on making copies of the documentation, please let us know.
95 We can probably offer suggestions.
96 </p>
99 <!-- ####################################################### -->
101 <hr />
102 <p class="fineprint"><em>
103 Comments and suggestions about this page are welcome, and may be sent to
104 <a href="mailto:libstdc++@gcc.gnu.org">the libstdc++ mailing list</a>.
105 Comments or questions about the licenses themselves are also welcome, and
106 should be directed to the GCC list as descibed above.
107 </em></p>
110 </body>
111 </html>