Using taglib in Win32 project
lalinsky at gmail.com
Sun May 11 10:42:46 UTC 2014
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.
On Sat, May 10, 2014 at 11:05 PM, Lesiak, Krzysztof <ga54fed at mytum.de>wrote:
> 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.
> 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.
> Could anyone please help me?
> Best Regards,
> taglib-devel mailing list
> taglib-devel at kde.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the taglib-devel