This link tells me not to use MIT under my license when redistributing the Apache 2.0 source code.

Then, if Apache 2.0 or GPL source code is not included, only when specified in the header file and used as a library? (Build file distribution x)

Here's an example:

//if something.h is apache2.0 license
#include <something.h>

// and this code under mit
  • Please provide details of what you are trying to do. I am not clear if I fully understand your question. Jan 25, 2022 at 16:43
  • @Martin_in_AUT I would like to share a project that uses a library with a GPL license. However, those GPL library codes are not included in the repo. I also do not share programs. I only share the code I wrote, not the GPL library. The user has to find the library from other places on his own to build the program. Should my code itself be GPL in this situation?
    – Ko wa
    Apr 26, 2022 at 4:21
  • Your question is very similar to several previous questions, like these: opensource.stackexchange.com/questions/9085/… and opensource.stackexchange.com/questions/2139/… and opensource.stackexchange.com/questions/6033/… . Please check if you can find the answer there, or explain what is still open. Apr 27, 2022 at 8:42


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.