TagLib 1.5 for windows binaries are broken

Casper van Donderen casper.vandonderen at gmail.com
Thu Aug 13 14:03:38 CEST 2009

Hi Jeff,

Are you on MSVC 2005?

then you have to change the sourcecode to LPWSTR. Tht is something
that changed in the Windows API between 2005 & 2008, the string is now
constant (the C), it used to be not like that.


Casper van Donderen

2009/8/13 Jeff Mitchell <mitchell at kde.org>:
> Nicolas P. wrote:
>> Hello everyone,
>> I just wanted to let you know that the binaries for Windows are somewhat
>> broken. I had a linker error when trying to pass a LPCWSTR to the
>> TagLib::FileRef constructor.
>> However it's just a matter of preprocessor definition, as the CMake
>> configuration define a WIN32, whereas some source files, like tfile.h,
>> use __WIN32.
> Sorry, your mail just came through to me for some reason.
> Is __WIN32 perhaps something that is supposed to be defined by the MS
> compiler? Or is this perhaps compiler specific (i.e. msys/mingw vs.
> msvc)? Or dependent on exactly which Windows version you're using?
> Just wondering if there's a reason this hasn't been caught earlier as
> people have been building taglib on Windows for ages.
> CCing the KDE-Windows people as I know they build it and I know they use
> CMake, and I don't remember them patching it -- they might know more
> details.
> --Jeff
> _______________________________________________
> Kde-windows mailing list
> Kde-windows at kde.org
> https://mail.kde.org/mailman/listinfo/kde-windows

More information about the taglib-devel mailing list