Gpl

Jump to First Reply
Posted:
in Mac Software edited January 2014
Just a quick question. If I #include g++ standard libraries like stdio.h in my program, am I forced to make it under the GNU Public License or does that not count for standard libraries? I know that if you use code from a GPL'd program you have to make the new program under GPL too... Or at least provide the source code with any binaries that you distribute....

Comments

  • Reply 1 of 2
    kickahakickaha Posts: 8,760member
    stdio.h, et al are *C++* standard headers, not just gcc*.



    So you aren't incorporating GNU specific code, you're asking for "Whatever file you have that conforms to the ANSI/ISO C++ spec" of whatever compiler you *happen* to be running on.



    It's gcc's decision to give you the GNU code.



    This is actually covered in the gcc license.



    * It's gcc, not g++. g++ is a way of forcing certain C++-isms on the compilation chain, but gcc is the name of the system: GNU Compiler Collection.
     0Likes 0Dislikes 0Informatives
  • Reply 2 of 2
    pyr3pyr3 Posts: 946member
    I thought that GCC stood for the 'GNU C Compiler'. I've had problems where I get linking errors with gcc on a C++ program, but g++ compiles it fine. But I haven't used gcc/g++ in an very in depth way (as in loads of commandline options and such) so I'm not claiming absolute knowledge or anything...
     0Likes 0Dislikes 0Informatives
Sign In or Register to comment.