免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2910 | 回复: 7
打印 上一主题 下一主题

linux开发怎样避开gpl? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-07-04 13:22 |只看该作者 |倒序浏览
使用c++在linux下开发,怎样避免开源呢,动态的调用类库也必须遵守吗?

论坛徽章:
0
2 [报告]
发表于 2008-07-04 13:49 |只看该作者
如果你把别人的软件作为一个整体使用,不要试图去修改或者拆分,GPL对你是透明的

论坛徽章:
0
3 [报告]
发表于 2008-07-04 13:55 |只看该作者
原帖由 net_robber 于 2008-7-4 13:49 发表
如果你把别人的软件作为一个整体使用,不要试图去修改或者拆分,GPL对你是透明的

是自己开发软件,不使用遵守pgl的source code, 但C++的类库必须要使用啊,linux下的C++库是pgl的,我也必须开放源代码吗?
透明的是什么意思?

论坛徽章:
0
4 [报告]
发表于 2008-07-04 14:16 |只看该作者
原帖由 sinoman 于 2008-7-3 21:55 发表

是自己开发软件,不使用遵守pgl的source code, 但C++的类库必须要使用啊,linux下的C++库是pgl的,我也必须开放源代码吗?
透明的是什么意思?


libstdc++虽然是GPL的,但是有一个特殊的声明(所谓的Runtime Exception)允许你使用里面的源代码一起编译到你的可执行文件,你的软件不必受到GPL制约。
当然GNU的C类库glibc直接就是LGPL的。

论坛徽章:
0
5 [报告]
发表于 2008-07-04 14:21 |只看该作者
谢谢,我去找Runtime Exception看看

论坛徽章:
0
6 [报告]
发表于 2008-07-04 15:05 |只看该作者
License

There are two licenses affecting GNU libstdc++: one for the code, and one for the documentation.

There is a license section in the FAQ regarding common questions. If you have more questions, ask the FSF or the gcc mailing list.

The Code: GPL
The source code is distributed under the GNU General Public License version 2, with the so-called “Runtime Exception” as follows (or see any header or implementation file):
      As a special exception, you may use this file as part of a free software
      library without restriction.  Specifically, if other files instantiate
      templates or use macros or inline functions from this file, or you compile
      this file and link it with other files to produce an executable, this
      file does not by itself cause the resulting executable to be covered by
      the GNU General Public License.  This exception does not however
      invalidate any other reasons why the executable file might be covered by
      the GNU General Public License.
Hopefully that text is self-explanatory. If it isn't, you need to speak to your lawyer, or the Free Software Foundation.
The Documentation: GPL, FDL

意思是源代码是例外的?我包含源代码进行编译的话的产品可以不开源?

[ 本帖最后由 sinoman 于 2008-7-4 15:06 编辑 ]

论坛徽章:
0
7 [报告]
发表于 2008-07-04 17:17 |只看该作者
gnu除了gpl,还有lgpl。lgpl的库尽可以放心用。

论坛徽章:
0
8 [报告]
发表于 2008-07-04 17:45 |只看该作者
lgpl的也不能随便用的,lgpl的东西是不能静态链接到自己的程序的,当然,动态链接可以
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP