This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: libstdc++ license


Munagala V. S. Ramanath wrote:

> I'd like to release a demo (proprietary) program for Linux and would
> like to use static linking to avoid problems of version skew in the
> libraries. Since the C library will presumably still be LGPL, my
> question is:
> 
> If a pure C++ program is built with libstdc++ will it contain LGPL parts
> from the C library (sucked in behind the scenes) assuming I don't
> explicitly use C library features like malloc, printf, strcpy etc. ?
> Or is it essentially impossible to legally do what I'd like to do ?

The C++ library will use some C library features.  You can static-link
the C++ part, and dynamic-link the C library.

It may be possible to link some other C library underneath.

Nathan Myers
ncm@cantrip.org


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]