<div dir="ltr">If you want to link against a static version of TagLib, you need to define the TAGLIB_STATIC macro when compiling your application (either in the source code before including taglib, or in the VS compiler settings). By default, TagLib classes are marked with __declspec(dllimport) which means you are linking against a DLL version of TagLib. Defining TAGLIB_STATIC will change that.<div>

<br></div><div>Lukas</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, May 10, 2014 at 11:05 PM, Lesiak, Krzysztof <span dir="ltr"><<a href="mailto:ga54fed@mytum.de" target="_blank">ga54fed@mytum.de</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div dir="ltr">
<div dir="ltr" style="font-family:'Calibri','Segoe UI','Meiryo','Microsoft YaHei UI','Microsoft JhengHei UI','Malgun Gothic','sans-serif';font-size:12pt">
<div><br>
</div>
<div>Hello,</div>
<div><br>
</div>
<div>I’m encountering issues when trying to use taglib in a Win32 project. I’ve been able to build and install taglib without problems (with CMake GUI and Visual Studio 2013), and added tag.lib as an additional dependency for the
 linker + the include paths under “Additional #include directories” in my project. The program is basically the tagwriter.cpp sample, but when I try to compile it, I get a lot of “unresolved external symbol” errors.</div>


<div>Some functions in taglib are defined as _declspec(dllimport), but from which dll are those imported? Am I missing another reference in my project? I actually wanted to just use the static library in my application, but that doesn’t
 work, neither when building as in the INSTALL file, nor when using ENABLE_STATIC in CMake.</div>
<div>Could anyone please help me?</div>
<div><br>
</div>
<div>Best Regards,</div>
<div>Krzysztof<br>
</div>
</div>
</div>

<br>_______________________________________________<br>
taglib-devel mailing list<br>
<a href="mailto:taglib-devel@kde.org">taglib-devel@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/taglib-devel" target="_blank">https://mail.kde.org/mailman/listinfo/taglib-devel</a><br>
<br></blockquote></div><br></div>