473,387 Members | 1,391 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Question about proprietary software development using GNU C++

Hello,

I have a question about using GNU C++ proprietary software
development, is this possible or against the GNU license? Any good
commercial cross platform complier recommendation ?

Thanks,
W.K.

Aug 6 '07 #1
11 3614
On Aug 6, 1:30 pm, "W.K." <goodyear...@126.comwrote:
I have a question about using GNU C++ proprietary software
development, is this possible or against the GNU license? Any good
commercial cross platform complier recommendation ?
It's possible. The GNU compiler is - in my opinion - a fine choice.
Not much point talking about cross platform without listing your
platforms.

Tony

Aug 6 '07 #2
On Aug 6, 6:30 am, "W.K." <goodyear...@126.comwrote:
I have a question about using GNU C++ proprietary software
development, is this possible or against the GNU license?
It's hard to say. Code generated by the compiler (as a result
of compiling your own code) is not covered by the GPL, so
there's no problem there. The g++ library is covered by the
LGPL, and not the GPL, so code you link into your application
from the library doesn't taint your application. Incorporating
source code from the library would, however, and at least at one
point, there was some question concerning what this meant with
regards to templates. You might want to have your company
lawyers check this out.
Any good
commercial cross platform complier recommendation ?
G++ is an excellent compiler. Comeau's even better, but it
depends on g++ for the back end. (Using Comeau with the
Dinkumware library would avoid any questions concerning the
library, and is probably the best compiler/library combination
around as well.)

--
James Kanze (GABI Software) email:ja*********@gmail.com
Conseils en informatique orientée objet/
Beratung in objektorientierter Datenverarbeitung
9 place Sémard, 78210 St.-Cyr-l'École, France, +33 (0)1 30 23 00 34

Aug 6 '07 #3
On 2007-08-06 11:27, James Kanze wrote:
On Aug 6, 6:30 am, "W.K." <goodyear...@126.comwrote:
>I have a question about using GNU C++ proprietary software
development, is this possible or against the GNU license?

It's hard to say. Code generated by the compiler (as a result
of compiling your own code) is not covered by the GPL, so
there's no problem there. The g++ library is covered by the
LGPL, and not the GPL, so code you link into your application
from the library doesn't taint your application. Incorporating
source code from the library would, however, and at least at one
point, there was some question concerning what this meant with
regards to templates. You might want to have your company
lawyers check this out.
I remember reading somewhere recently that the library was GPL (but I'm
not 100% sure, could have been LGPL) with an additional clause to
prevent the usage of templates from contaminating your code, so there
should be no problem there.

--
Erik Wikström
Aug 6 '07 #4

W.K. <go*********@126.comwrote in message...
Hello,
I have a question about using GNU C++ proprietary software
development, is this possible or against the GNU license? Any good
commercial cross platform complier recommendation ?
Thanks, W.K.
www.gnu.org explains all.

--
Bob R
POVrookie
Aug 6 '07 #5
BobR wrote:
W.K. <go*********@126.comwrote in message...
>Hello,
I have a question about using GNU C++ proprietary software
development, is this possible or against the GNU license? Any good
commercial cross platform complier recommendation ?
W.K.,

Try Intel C/C++
>Thanks, W.K.

www.gnu.org explains all.
Second that.

V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask
Aug 6 '07 #6
On Aug 6, 11:37 am, Erik Wikström <Erik-wikst...@telia.comwrote:
On 2007-08-06 11:27, James Kanze wrote:
On Aug 6, 6:30 am, "W.K." <goodyear...@126.comwrote:
I have a question about using GNU C++ proprietary software
development, is this possible or against the GNU license?
It's hard to say. Code generated by the compiler (as a result
of compiling your own code) is not covered by the GPL, so
there's no problem there. The g++ library is covered by the
LGPL, and not the GPL, so code you link into your application
from the library doesn't taint your application. Incorporating
source code from the library would, however, and at least at one
point, there was some question concerning what this meant with
regards to templates. You might want to have your company
lawyers check this out.
I remember reading somewhere recently that the library was GPL (but I'm
not 100% sure, could have been LGPL) with an additional clause to
prevent the usage of templates from contaminating your code, so there
should be no problem there.
If it were GPL, even linking against it would contaminate the code.

I'm pretty sure that the authors of the C++ library for g++
don't want the use of templates to contaminate the code either.
But it's a situation which wasn't originally forseen in the
LGPL. I don't think there'd be a problem, but that's because I
trust the good faith of the people managing g++, and not because
I'm sure concerning any legal guarantees.

--
James Kanze (GABI Software) email:james.kanze:gmail.com
Conseils en informatique orientée objet/
Beratung in objektorientierter Datenverarbeitung
9 place Sémard, 78210 St.-Cyr-l'École, France, +33 (0)1 30 23 00 34

Aug 6 '07 #7
On Aug 5, 9:30 pm, "W.K." <goodyear...@126.comwrote:
Hello,

I have a question about using GNU C++ proprietary software
development, is this possible or against the GNU license? Any good
commercial cross platform complier recommendation ?
The only software company that I know for a fact that compiles
commercial software with GNU's g++ compiler is an outfit called
"Microsoft". They have a new version of a product they call "Office
for Mac" (which is actually not one application, but five: Excel,
PowerPoint, Word, Entourage and Messenger) each one written in C or C+
+ and each one compiled with the GNU gcc/g++ compiler on OS X.

Of course that's just one software company, so I would reach any
conclusion from my example. After all, it could be that no one in that
company has ever heard of the GNU license - or it could be that there
are no lawyers working for that company.

Greg


Aug 7 '07 #8
On Aug 6, 11:13 pm, James Kanze <james.ka...@gmail.comwrote:
On Aug 6, 11:37 am, Erik Wikström <Erik-wikst...@telia.comwrote:
On 2007-08-06 11:27, James Kanze wrote:
On Aug 6, 6:30 am, "W.K." <goodyear...@126.comwrote:
>I have a question about using GNU C++ proprietary software
>development, is this possible or against the GNU license?
It's hard to say. Code generated by the compiler (as a result
of compiling your own code) is not covered by the GPL, so
there's no problem there. The g++ library is covered by the
LGPL, and not the GPL, so code you link into your application
from the library doesn't taint your application. Incorporating
source code from the library would, however, and at least at one
point, there was some question concerning what this meant with
regards to templates. You might want to have your company
lawyers check this out.
I remember reading somewhere recently that the library was GPL (but I'm
not 100% sure, could have been LGPL) with an additional clause to
prevent the usage of templates from contaminating your code, so there
should be no problem there.

If it were GPL, even linking against it would contaminate the code.

I'm pretty sure that the authors of the C++ library for g++
don't want the use of templates to contaminate the code either.
But it's a situation which wasn't originally forseen in the
LGPL.
It wasn't. Thats why the libstdc++ (gcc implementation of the C++
standard lib) is neither GPL nor LGPL but "GPL with 'runtime-
exception' ". See http://gcc.gnu.org/onlinedocs/libstd...o/license.html
for details but I think the following FAQ item from that page sums it
up nicely:

Q: So any program which uses libstdc++ falls under the GPL?
A: No. The special exception permits use of the library in proprietary
applications.

HTH

Fabio

Aug 7 '07 #9
joe
Out of curiousity, why hasn't this topic gotten the short and to the
point "This is off topic here" answer that other compiler specific
questions have gotten?

joe

Aug 7 '07 #10
On Aug 7, 5:33 pm, joe <jgr...@DoubleTake.comwrote:
Out of curiousity, why hasn't this topic gotten the short and to the
point "This is off topic here" answer that other compiler specific
questions have gotten?
Who knows? Maybe the web police have a soft spot in their
hearts for g++. (A bit hypocritical of them, of course.)

Anyway, about all you can do for such answers when they occur is
to ignore them. Especially as I find that about half the time,
they're wrong anyway; the subject is on topic, it's just that
the person complaining hasn't understood it.

(Note too that there is a polite way and an impolite way to
indicate non-topicality. If someone does ask a precise question
about a Windows or a Unix API, you're probably helping them if
you politely point to a more appropriate group, because they'll
find more Windows or Unix expertise there than here. But
there's no need for the tone of such a posting to imply that the
poster was intentionally abusing news.)

--
James Kanze (GABI Software) email:ja*********@gmail.com
Conseils en informatique orientée objet/
Beratung in objektorientierter Datenverarbeitung
9 place Sémard, 78210 St.-Cyr-l'École, France, +33 (0)1 30 23 00 34

Aug 8 '07 #11
On Aug 7, 9:58 am, Greg Herlihy <gre...@pacbell.netwrote:
On Aug 5, 9:30 pm, "W.K." <goodyear...@126.comwrote:
I have a question about using GNU C++ proprietary software
development, is this possible or against the GNU license? Any good
commercial cross platform complier recommendation ?
The only software company that I know for a fact that compiles
commercial software with GNU's g++ compiler is an outfit called
"Microsoft". They have a new version of a product they call "Office
for Mac" (which is actually not one application, but five: Excel,
PowerPoint, Word, Entourage and Messenger) each one written in C or C+
+ and each one compiled with the GNU gcc/g++ compiler on OS X.
That's an interesting point, because of course, Apple itself
uses g++ internally; it's their "official" compiler. I suspect
that most commercial applications for Apple or for Linux use
g++.

Of course, that doesn't prove anything concerning what the
license actually says. There are two possible situations: it is
OK (which I'm actually pretty sure is the case), or they've just
gotten away with it until now.
Of course that's just one software company, so I would reach any
conclusion from my example. After all, it could be that no one in that
company has ever heard of the GNU license - or it could be that there
are no lawyers working for that company.
Or that they have large enough pockets to make the legal
proceding draw out until their opponents give up:-).

As it is:

-- Another poster has pointed out that there is a special
exception to the GPL for the g++ library, to ensure that
code doesn't accidentally become tainted, so there should be
no problem.

-- Even without knowing about this exception, I felt
sufficiently sure concerning the intent of the people
involved with g++ to feel safe using it in commercial
applications.

-- But neither the other poster nor myself are your company's
lawyers, and they are the ones you have to convince:-(.

--
James Kanze (GABI Software) email:ja*********@gmail.com
Conseils en informatique orientée objet/
Beratung in objektorientierter Datenverarbeitung
9 place Sémard, 78210 St.-Cyr-l'École, France, +33 (0)1 30 23 00 34

Aug 8 '07 #12

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

34
by: Michael Foord | last post by:
I'd like to formalise slightly the license I release my projects under. At the moment it's 'free to use, modify, distribute and relicense'. This is basically fine as I don't want t oprevent people...
8
by: Joakim Persson | last post by:
Hello all. I am involved in a project where we have a desire to improve our software testing tools, and I'm in charge of looking for solutions regarding the logging of our software (originating...
39
by: Kaarel | last post by:
I don't feel very confident when it comes to software licenses. But there are some cases I would like to make myself clear. What I am particulary interested in is when does GPL license become...
22
by: Matt | last post by:
Some people identify Microsoft C# is Proprietary programming language. What is Proprietary programming language then? How does it differ from other languages such as C++, or Java?? Please...
58
by: Larry David | last post by:
Ok, first of all, let's get the obvious stuff out of the way. I'm an idiot. So please indulge me for a moment. Consider it an act of "community service".... What does "64bit" mean to your friendly...
4
by: Bas Hamer | last post by:
I guess I don't know how to word it better than that. Our company has machines that generate log file in our own proprietary language. A while back I wrote a class that took one of these files...
8
by: Jolly Student | last post by:
Dear Colleagues: I am a systems guy who has been working with hardware, networking and basic scripting for ten years or so. I have been given the opportunity to attend ..Net classes of all...
6
by: dunleav1 | last post by:
I have an application that uses the old join syntax instead of the SQL92 standards join syntax. I need to justify changing the code to the new standard. Is there any performance issue related to...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.