<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
I am building an application with waf using MSVC (Visual Studio
2017) with a shared dependency on Taglib. <br>
<br>
Taglib dll was built with the same version of MSVC following
instructions in the INSTALL.md. <br>
<br>
Running my application I get into memory errors . Actually, the most
basic code that lead to a crash is
<pre><code>// just trying to open a non-existing file
wchar_t *hello = L"hello";
TagLib::FileRef f(hello);
</code></pre>
<p>Might be some linking issues? A mismatch in the definition of
wchar_t?<br>
</p>
<br>
I also get warnings:<br>
<pre><code>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>>'</code></pre>
<br>
Cheers,<br>
Dmitry<br>
<pre><code></code><code>
</code></pre>
</body>
</html>