Discussion Forums

Re: FAST C++ open-source contribution
Alexis Richardson
24 Mar 2008 10:22AM ET

Hi Dimitry, Konstantin, everyone,

I would recommend dual licensing the software under the GPL and any other OSI-approved license that you are comfortable with and that is reasonably non-viral. For the latter you may wish to consider: MPL 1.1, APL 2, or perhaps simplest of all - BSD.

Dual licensing means that users can choose under which of the two licenses they wish to use the code.

* For people who must use it under the GPL in order to achieve compatibility with other software, this choice is available.
* For people who do not wish to be restricted by the GPL, the other license is also available.

Also, if I were you, I would not use the LGPL unless you really have to, since this can lead to confusion over what the L means.

Best wishes

alexis richardson

CohesiveFT

> Rolf, you are right. Sorry, I did not take it into account.
>
> If the library uses templates it is impossible to replace the LGPL code
> with modified version without rebuilding. The only way is to add the
> same "exception": use the library but make public all changes you did.
>
> BTW, LGPLv3 contains the following section which I don't
> understand properly:
>
> "3. Object Code Incorporating Material from Library Header Files.
>
> The object code form of an Application may incorporate material from a
> header file that is part of the Library. You may convey such object code
> under terms of your choice, provided that, if the incorporated material
> is not limited to numerical parameters, data structure layouts and
> accessors, or small macros, inline functions and templates (ten or fewer
> lines in length), you do both of the following:
>
> a) Give prominent notice with each copy of the object code that the
> Library is used in it and that the Library and its use are covered
> by this License.
>
> b) Accompany the object code with a copy of the GNU GPL and this
> license document."
>
> So it possible to use LGPL for C++ library but it is almost impossible
> to measure "ten or fewer lines" and "small macros".
>
> -Konstantin.
>
> > Konstantin,
> >
> > AFAICT Q&A #2 says "... rendering the LGPL equivalent to the GPL" in
> > the case of a C++ library with inline functions and templates.
> >
> > Q: How is that different from the GNU {Lesser,Library} GPL?
> > R: The LGPL requires that users be able to replace the LGPL code with
> > a modified version; this is trivial if the library in question is a
> > C shared library. But there's no way to make that work with C++,
> > where much of the library consists of inline functions and
> > templates, which are expanded inside the code that uses the
> > library. So to allow people to replace the library code, someone
> > using the library would have to distribute their own source,
> > rendering the LGPL equivalent to the GPL.
> >
> > Am I missing something here?
> >
> > /Rolf
> >
> > > libstdc++ is licensed under the terms of GPLv2 license with "runtime
> > > exception" that is explained in FAQ form:
> > > Q: So any program which uses libstdc++ falls under the GPL?
> > > R: No. The special exception permits use of the library in
> > > proprietary applications.
> > >
> > > But we are talking about LGPL license:
> > > http://www.gnu.org/licenses/lgpl.html
> > >
> > > The main difference between GPL and LGPL that LGPL-ed library can be
> > > used by non-(L)GPL program. This program can be distributed under
> > > any chosen license.
> > >
> > > Wikipedia provides a good introduction to LGPL:
> > > http://en.wikipedia.org/wiki/GNU_Lesser_General_Public_License
> > >
> > > -Konstantin
> > >
> > >> I got some feedback off-line and it seems that LGPL and C++ libs
> > >> may be problematic. I suggest you check:
> > >>
> > >> http://gcc.gnu.org/onlinedocs/libstdc++/17_intro/license.html
> > >>
> > >> Best, Rolf
> > >>


FAST C++ open-source contribution
Dimitry London / Morgan Stanley   19 Mar 2008 9:31AM ET
Re: FAST C++ open-source contribution
Konstantin Stepanyuk / CQG Inc.   19 Mar 2008 10:20AM ET
Re: FAST C++ open-source contribution
Dimitry London / Morgan Stanley   19 Mar 2008 10:48AM ET
Re: FAST C++ open-source contribution
Rolf Andersson / Pantor Engineering   19 Mar 2008 11:03AM ET
Re: FAST C++ open-source contribution
Dimitry London / Morgan Stanley   19 Mar 2008 11:18AM ET
Re: FAST C++ open-source contribution
Rolf Andersson / Pantor Engineering   19 Mar 2008 11:25AM ET
Re: FAST C++ open-source contribution
Sean Holohan   19 Mar 2008 11:36AM ET
Re: FAST C++ open-source contribution
Dimitry London / Morgan Stanley   19 Mar 2008 11:43AM ET
Re: FAST C++ open-source contribution
Sigurd Hogsbro / Ecominds Ltd   19 Mar 2008 12:18PM ET
Re: FAST C++ open-source contribution
Rolf Andersson / Pantor Engineering   23 Mar 2008 6:24AM ET
Re: FAST C++ open-source contribution
Konstantin Stepanyuk / CQG Inc.   24 Mar 2008 1:18AM ET
Re: FAST C++ open-source contribution
Rolf Andersson / Pantor Engineering   24 Mar 2008 2:37AM ET
Re: FAST C++ open-source contribution
Konstantin Stepanyuk / CQG Inc.   24 Mar 2008 3:12AM ET
Re: FAST C++ open-source contribution
Alexis Richardson   24 Mar 2008 10:22AM ET
Re: FAST C++ open-source contribution
Rolf Andersson / Pantor Engineering   24 Mar 2008 11:17AM ET
Re: FAST C++ open-source contribution
Rodrick Brown / Ballista Securities   24 Mar 2008 4:25PM ET
Re: FAST C++ open-source contribution
Rolf Andersson / Pantor Engineering   24 Mar 2008 5:17PM ET
Re: FAST C++ open-source contribution
Dimitry London / Morgan Stanley   24 Mar 2008 9:50PM ET
Re: FAST C++ open-source contribution
Joakim Johansson / Tbricks   25 Mar 2008 5:19AM ET
Re: FAST C++ open-source contribution
Dimitry London / Morgan Stanley   25 Mar 2008 9:07AM ET
Re: FAST C++ open-source contribution
Daniel May / SpryWare, LLC   30 Mar 2008 6:51PM ET
Re: FAST C++ open-source contribution
Dimitry London / Morgan Stanley   2 Apr 2008 10:47AM ET
Re: FAST C++ open-source contribution
Dimitry London / Morgan Stanley   7 Apr 2008 3:44PM ET
Re: FAST C++ open-source contribution
Jim Northey / The LaSalle Technology Group   23 Apr 2008 8:53PM ET
Re: FAST C++ open-source contribution
Rolf Andersson / Pantor Engineering   23 Apr 2008 11:12PM ET
Re: FAST C++ open-source contribution
Bucica Mihai   4 Apr 2008 11:38AM ET
Re: FAST C++ open-source contribution
Dimitry London / Morgan Stanley   7 Apr 2008 3:45PM ET
Re: FAST C++ open-source contribution
Radu-Adrian Popescu   16 Jun 2009 10:19AM ET
Re: FAST C++ open-source contribution
Dale Wilson / Object Computing, Inc   16 Jun 2009 10:48AM ET
Re: FAST C++ open-source contribution
Malcolm Spence / Object Computing Inc.   1 Feb 2010 5:51PM ET