Sorry for bad English.
Suppose there is a library xxx
under GNU GPL, that provideprovides a function yyy
. Suppose my code links to the library and useuses this function. Does my code inherit GPL license?
IANAL, but my thoughts are conflicting:
- On one hand, my code is derivative from the library, so it should inherit GPL.
- On other hand, my code just useuses link to the
xxx
. Maybe there are other libraries, that hashave the same interface (particularly, they provideyyy
function with same functionality, but different implementation). My code may link to any. My code really doesn'tisn't directly derived fromxxx
, it just useuses its interface. So, my code shouldn't inherit GPL.
I'm confused.
ADDED.Note: The question is absolutely abstract. I don't mean any concrete GPL library.