Crash on a Windows build using taglib dll

Dmitry Bogdanov dmitry.bogdanov at upf.edu
Thu Nov 30 18:27:38 UTC 2017


I am building an application with waf using MSVC (Visual Studio 2017) 
with a shared dependency on Taglib.

Taglib dll was built with the same version of MSVC following 
instructions in the INSTALL.md.

Running my application I get into memory errors . Actually, the most 
basic code that lead to a crash is

|// just trying to open a non-existing file wchar_t *hello = L"hello"; 
TagLib::FileRef f(hello); |

Might be some linking issues? A mismatch in the definition of wchar_t?


I also get warnings:

|c:\users\user\dev\essentia\packaging\win32_3rdparty\builds\taglib-1.11.1\include\taglib\tiostream.h(53): 
warning C4251: 'TagLib::FileName::m_name': class 
'std::basic_string<char,std::char_traits<char>,std::allocator<char>>' 
needs to have dll-interface to be used by clients of class 
'TagLib::FileName' c:\program files (x86)\microsoft visual 
studio\2017\buildtools\vc\tools\msvc\14.11.25503\include\xstring(4079): 
note: see declaration of 
'std::basic_string<char,std::char_traits<char>,std::allocator<char>>' 
c:\users\user\dev\essentia\packaging\win32_3rdparty\builds\taglib-1.11.1\include\taglib\tiostream.h(54): 
warning C4251: 'TagLib::FileName::m_wname': class 
'std::basic_string<wchar_t,std::char_traits<wchar_t>,std::allocator<wchar_t>>' 
needs to have dll-interface to be used by clients of class 
'TagLib::FileName' c:\program files (x86)\microsoft visual 
studio\2017\buildtools\vc\tools\msvc\14.11.25503\include\xstring(4080): 
note: see declaration of 
'std::basic_string<wchar_t,std::char_traits<wchar_t>,std::allocator<wchar_t>>'|


Cheers,
Dmitry

||||

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/taglib-devel/attachments/20171130/436e7604/attachment.html>


More information about the taglib-devel mailing list