News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

Commercial use (Code::Blocks + GNU GCC compiler)

Started by f2099, August 28, 2011, 03:45:44 AM

Previous topic - Next topic

f2099


   Hi, everyone. I've searched the forum for this information, and I apologize for bringing up a subject already discussed here, but I am still a little insecure, so I would like to ask you: can I use Code::Blocks with the GNU GCC compiler to develop commercial, closed source software? Thanks in advance!

stahta01

C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

f2099


   I understand that I can use Code::Blocks for commercial, closed-source developing, as long as I don't use parts of CB's source code, but am I allowed to use the GNU GCC compiler commercially too?

Jenna

Quote from: f2099 on August 28, 2011, 04:47:11 AM

   I understand that I can use Code::Blocks for commercial, closed-source developing, as long as I don't use parts of CB's source code, but am I allowed to use the GNU GCC compiler commercially too?

As far as I know, you can, but if you want to be absolutely sure, you should ask at mailing list related to the gnu compiler suite (and of course read the documentation).

This software is not related to C::B, we only bundle it with C::B on windows, to make the starting easier.

zabzonk

> am I allowed to use the GNU GCC compiler commercially too?

Yes, lot's of commercial companies use GCC.  The limitation is on  the libraries, not the compiler, and if these are LGPL licensed, which most are, you can distribute software using them without falling under the GPL.

f2099

Quote from: jens on August 28, 2011, 09:09:14 AM

As far as I know, you can, but if you want to be absolutely sure, you should ask at mailing list related to the gnu compiler suite (and of course read the documentation).

This software is not related to C::B, we only bundle it with C::B on windows, to make the starting easier.

Thanks!

f2099

Quote from: Neil Butterworth on August 28, 2011, 09:09:55 AM

Yes, lot's of commercial companies use GCC.  The limitation is on  the libraries, not the compiler, and if these are LGPL licensed, which most are, you can distribute software using them without falling under the GPL.


Thanks! By libraries, you mean the header files, like stdio.h? So, basically, if I use the GCC compiler and the standard C libraries, I don't have to worry about licensing?

By the way, is windows.h also free for commercial use?

Thanks again!

Freem

Usually, headers include their own license in the file.
But I don't think standard libs and/or windows libs are not free for commercial use.

MortenMacFly

Quote from: f2099 on August 29, 2011, 05:42:12 AM
By the way, is windows.h also free for commercial use?
If that wouldn't be the case, there would be now commercial Windows software at all.
(As this pretty much covers the Windows API.)

Next time, please ask in the right forums. "windows.h" is nothing provided with the Code::Blocks IDE directly, but ships with the compiler you are using. So please, ask in the appropriate forum. Thank you.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

f2099

Quote from: Freem on August 29, 2011, 09:40:28 AM
Usually, headers include their own license in the file.
But I don't think standard libs and/or windows libs are not free for commercial use.

Thanks!

f2099

Quote from: MortenMacFly on August 29, 2011, 11:03:32 AM
Quote from: f2099 on August 29, 2011, 05:42:12 AM
By the way, is windows.h also free for commercial use?
If that wouldn't be the case, there would be now commercial Windows software at all.
(As this pretty much covers the Windows API.)

Next time, please ask in the right forums. "windows.h" is nothing provided with the Code::Blocks IDE directly, but ships with the compiler you are using. So please, ask in the appropriate forum. Thank you.

Thanks, and I apologize.