Thread: [Dev-C++] Question about the Dev-C++ license
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Christoph P. <Chr...@we...> - 2004-09-29 15:53:57
|
In the last months I created a 3D engine based on Direct3D. I compiled it in Dev-C++ as dll. I intend to publish it in the internet. Of course I'll show the users the license agreement of Dev-C++. Would it be legally if I publish it in the internet? And would the users be allowed to sell games they made using this dll? I'd be thankful for a fast and obliging answer. With kind regards Christoph Peters. |
|
From: Carlo <car...@li...> - 2004-09-30 07:16:47
|
Christoph Peters ha scritto lo scorso 29/09/2004 17.53: > In the last months I created a 3D engine based on Direct3D. I compiled > it in Dev-C++ as dll. I intend to publish it in the internet. Of course > I'll show the users the license agreement of Dev-C++. > Would it be legally if I publish it in the internet? And would the users > be allowed to sell games they made using this dll? > I'd be thankful for a fast and obliging answer. > With kind regards > Christoph Peters. > I'm only a user of Dev-cpp, so please don't consider what I'm going to say as *the verb*, but in my opinion, you must consider this: dev-cpp comes with a GPL licensing scheme; this means that you can freely use it and redistribute it - together with sorces and a copy of the GPL license. Moreover, you can modify it or take pieces of code from it and insert them in a new work or link towards dynamic libraries but, according to GPL, the derived work *must* be GPL'd. When you use dev-cpp to edit, debug and compile your code you are only using a GPL application and, as long as your software does not contain pieces of code nor is dinamically linked towards dev-cpp libraries, you can release your work with the license you prefer (even a commercial one). A final consideration: I'm not a lawyer, and this matter is not so straitforward as someone can guess; I suggest you to take a look at GNU homepage for more documentation (included the 13 or so page GPL license) for more info. cheers |
|
From: Vivek J. <viv...@ya...> - 2004-09-30 11:41:29
|
This is just a sample code that compiles using the
Microsoft C++ compiler but seems to be giving problems
when compiled in Dev-C++. The problem is that I am
trying to port a library to Dev-C++ but this kind of
functionality has been used in the library and I am
getting all sorts or wierd errors because of this.
What am I missing out?
Regards,
Vivek Jishtu
------------------------------------------------
#include <iostream>
class First{
public:
void SomeWork()
{
std::cout <<"Inside SomeWork";
}
};
class Second
{
public:
void myfun(First &obj)
{
obj.SomeWork();
}
};
int main()
{
Second Obj2;
Obj2.myfun(First());
return 0;
}
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
|
|
From: Peter B. <pb...@hg...> - 2004-09-30 13:09:12
|
> int main()
> {
> Second Obj2;
> Obj2.myfun(First());
> return 0;
> }
Without seeing the error-messages I think the problem is the temporarily
instantiated object of class First in Obj2.myfun(First()).
myfun() takes a reference to a First object, which in the above sample
is a temporary instance.
Peter
|
|
From: Daniel K. O. <dan...@bo...> - 2004-09-30 20:54:28
|
Vivek Jishtu wrote: >What am I missing out? > > void myfun(First &obj) > > This line receives a non-const reference. You can't get a non-const reference from a temporary object. > Obj2.myfun(First()); > > Ta-da!!! Here you are using a reference to a temporary object. Daniel K. O. |
|
From: Vivek J. <viv...@ya...> - 2004-10-01 08:38:30
|
Thanks for your reply. But the problem is there is a lot of code in the library I am using. It compiles using Microsoft based compilers. Let alone an error there is not even a single warning that is displayed while compiling using Microsoft based compilers. I also tried compiling this code using an older version of GCC under Linux but there I got some other error. Regards, Vivek Jishtu > >What am I missing out? > > > > void myfun(First &obj) > > > > > This line receives a non-const reference. You can't > get a non-const > reference from a temporary object. > > > Obj2.myfun(First()); > > > > > Ta-da!!! Here you are using a reference to a > temporary object. > > > Daniel K. O. _______________________________ Do you Yahoo!? Declare Yourself - Register online to vote today! http://vote.yahoo.com |
|
From: Peter B. <pb...@hg...> - 2004-10-04 10:29:06
|
> Thanks for your reply. But the problem is there is a > lot of code in the library I am using. It compiles > using Microsoft based compilers. Let alone an error > there is not even a single warning that is displayed > while compiling using Microsoft based compilers. > Non const references can only bind to lvalues. A temporary is an rvalue. Using code in this way requires a compiler that works the way you expect. Or in other words: that code is not portable. As pointed out in the postings this concerns non constant references to temporary objects. Switch off MS specific language extensions on your MS-compiler (/Za). What do you get now? > I also tried compiling this code using an older > version of GCC under Linux but there I got some other > error. > gcc error messages may vary from version to version ;-) Peter |
|
From: William Mc C. <WIL...@ms...> - 2004-10-04 13:13:53
|
Good Morning:
DEV is an IDE not a compiler.=20
I suggest you use the Microsoft compiler, and quit bugging =
everyone.
If this is in a foreign language, Learn it.
----- Original Message -----=20
From: Peter Boehm<mailto:pb...@hg...>=20
To: =
dev...@li...<mailto:dev...@li...=
e.net>=20
Sent: Monday, October 04, 2004 3:50 AM
Subject: Re: [Dev-C++] Question about C++
> Thanks for your reply. But the problem is there is a
> lot of code in the library I am using. It compiles
> using Microsoft based compilers. Let alone an error
> there is not even a single warning that is displayed
> while compiling using Microsoft based compilers.
>
Non const references can only bind to lvalues. A temporary is an =
rvalue.
Using code in this way requires a compiler that works the way you
expect. Or in other words: that code is not portable. As pointed out =
in
the postings this concerns non constant references to temporary =
objects.
Switch off MS specific language extensions on your MS-compiler (/Za).
What do you get now?
> I also tried compiling this code using an older
> version of GCC under Linux but there I got some other
> error.=20
>=20
gcc error messages may vary from version to version ;-)
Peter
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on =
ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give =
us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out =
more
=
http://productguide.itmanagersjournal.com/guidepromo.tmpl<http://productg=
uide.itmanagersjournal.com/guidepromo.tmpl>
_______________________________________________
Dev-cpp-users mailing list
=
Dev...@li...<mailto:Dev...@li...=
e.net>
TO UNSUBSCRIBE: =
http://www23.brinkster.com/noicys/devcpp/ub.htm<http://www23.brinkster.co=
m/noicys/devcpp/ub.htm>
=
https://lists.sourceforge.net/lists/listinfo/dev-cpp-users<https://lists.=
sourceforge.net/lists/listinfo/dev-cpp-users>
|
|
From: <or...@vp...> - 2004-09-30 18:39:14
|
Carlo wrote: > dev-cpp comes with a GPL licensing scheme; this means that you can > freely use it and redistribute it - together with sorces and a copy of > the GPL license. Moreover, you can modify it or take pieces of code fro= m > it and insert them in a new work or link towards dynamic libraries but, > according to GPL, the derived work *must* be GPL'd. Read here: http://gcc.gnu.org/onlinedocs/libstdc++/17_intro/license.html And if you don't use C++, just C, then you are also allowed to make close= d source=20 applications. So there is no problem with GCC about licensing. But DirectX is going to = give you=20 troubles. Search the archives of this mailing list around 7th of Septembe= r this year and a=20 little before for more mails about this. > When you use dev-cpp to edit, debug and compile your code you are only > using a GPL application and, as long as your software does not contain > pieces of code nor is dinamically linked towards dev-cpp libraries, you > can release your work with the license you prefer (even a commercial on= e). To be precise, there is no such thing: "dev-cpp libraries". Dev-C++ is ON= LY a frontend, a=20 GUI for GCC, nothing more. Go to http://www.mingw.org for details about t= he libraries. And=20 you may choose a commercial license, even if you link with MinGW librarie= s. So you may develop commercial applications with Dev-C++. Just take into a= ccount, that=20 DirectX has a different license. -- Greetings, Bal=E1zs |