Taglib not linking statically

Lukáš Lalinský lalinsky at gmail.com
Mon Aug 24 07:44:31 UTC 2015

On Mon, Aug 24, 2015 at 9:34 AM, morbid code <morbidcode666 at gmail.com>

> What am I doing wrong? Should I include zlib as well? But according to
> the docs it's optional.

I think you just need to define TAGLIB_STATIC somewhere in your project.
Either in the build system or in the c++ file before including taglib.
Windows needs different symbol names for functions from static/dynamic
libraries. By default, TagLib will declare the functions
with __declspec(dllimport) which requires the __imp__XXX names. If you
define TAGLIB_STATIC, it should work.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/taglib-devel/attachments/20150824/4e89ea65/attachment.html>

More information about the taglib-devel mailing list