This depends on what your jurisdiction considers a "derivative work" and "linking". Consider talking to a lawyer.

Personally, I understand the two schools of thought as follows:

The one school believes that what the (version of the) GPL says is literally so, so any kind of linking infects the other side of linking with the GPL as well.

The other school believes that "linking" has no meaning in the license and that only the "derivative work" as governed by the copyright law has relevancy, maybe even tempered by laws about providing compatibility. If you subscribe to the latter school of thinking, then you need to convince at least yourself that your code is not derivative of the (header) files of the other library.

Workarounds could be to implement a stub library which happens to use a similar interface to your library, or to provide a (GPL-licensed) shim of the library to another interface, and to have multiple backend implementations for the other interface. Then, one could argue, the other interface is not derivative and thus blocks the GPL restrictions.

See also Term::ReadLine and Term::ReadLine::Gnu + Term::ReadLine::Perl.

I've always chosen the easy way


In reply to Re: When linking to a C library, do I need to use its license? by Corion
in thread When linking to a C library, do I need to use its license? by stevieb

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.