Date: Thu, 12 Oct 1995 10:28:29 +0200 (IST) From: Eli Zaretskii To: Ken Greenberg Cc: cwyles AT nyx10 DOT cs DOT du DOT edu, djgpp AT sun DOT soe DOT clarkson DOT edu Subject: Re: Stupid legal question - selling compiled programs? On Tue, 10 Oct 1995, Ken Greenberg wrote: > > I have read all the 'copying' readme files for the GCC compilers. What I > > want to know is this. Can I sell a compiled program I wrote in C and > > compiled using GCC? > > > > The output of GCC itself is not a problem; you can pretty much do what > you want with it. The problem is the libraries. These are covered by the > GNU library license, not the GPL. Assuming your program links in the > run-time libraries (i.e., if you have not written your own RTL from > scratch), you need to follow the terms of this license. As I read it, > you are required to make your program available in relocatable (.O) form > in addition to the executable (.EXE) form. This allows end-users to > modify the library and relink to your relocatable objects. Please don't make this issue more confusing than it already is by posting untested and unverified replies. DJGPP doesn't come with GNU C library, its C library is free, so programs written in C don't have the above restriction. Programs written in C++ and compiled with DJGPP *are* subject to these restrictions if they use classes from the libgpp.a library; if you only use classes from libiostream.a library, then again there are no restrictions. For details see the DJGPP FAQ list (available as faq102.zip from the same place you get DJGPP), Chapter 19.