4 ms·
This might not always be an option. GCC's libstdc++ is actually under the GPLv3[1]. There's an exception for code that's done via some Eligible Compilation Pr
by simcop2387 8y ago
This might not always be an option. GCC's libstdc++ is actually under the GPLv3[1]. There's an exception for code that's done via some Eligible Compilation Process, but I'm not sure if this also counts static linking of the libstdc++ into it. That said I'd be a little surprised if statically linking changed things here, I don't see any language about it like there is in the LGPL since it also considers replacement of the LGPL code without needing to touch the original inputs.
[1] https://gcc.gnu.org/onlinedocs/libstdc++/manual/license.html https://gcc.gnu.org/onlinedocs/libstdc++/manual/license.html
- jhasse 8y agoIt isn't under plain GPLv3, but a license which includes the following exception: > When you use GCC to compile a program, GCC may combine portions of certain GCC header files and runtime libraries with the compiled program. The purpose of this Exception is to allow compilation of non-GPL (including proprietary) programs to use, in this way, the header files and runtime libraries covered by this Exception. See https://gcc.gnu.org/onlinedocs/libstdc++/manual/license.html https://gcc.gnu.org/onlinedocs/libstdc++/manual/license.html
- uluyol 8y agoDoes that include libstdc++ or just libgcc? In any case, I guess you could always use libc++ instead.
- tomjakubowski 8y agoAs the page says, that license and exception apply to libstdc++. I don't know if they apply to libgcc.
- pjmlp 8y agoGCC is not the only C++ compiler around.