taglib fails to compile with MS VC++ 2010

Brett Hoyle kickbits at gmail.com
Sat Jul 17 07:39:28 CEST 2010


Oh and mpegheader.cpp line 171
From:
std::bitset<32> flags(data.toUInt());
to:
std::bitset<32> flags(static_cast<unsigned long long>(data.toUInt()));

mpcproperties.cpp line 116
From:
std::bitset<32> flags = d->data.mid(8, 4).toUInt(false);
To:
 std::bitset<32> flags = static_cast<unsigned long long>(d->data.mid(8,
4).toUInt(false));

-----Original Message-----
From: Ed Musgrove [mailto:edgarmusgrove at yahoo.com] 
Sent: Saturday, 17 July 2010 12:57 AM
To: taglib-devel at kde.org
Subject: taglib fails to compile with MS VC++ 2010

Any chance I can get some help on this? I am trying to get Audacity to build
with (the more strict than VC++ 2008) VC++ 2010...

------ Build started: Project: taglib, Configuration: Unicode Debug Win32
------
  apefooter.cpp
d:\audio\audacity\svn\lib-src\taglib\taglib\ape\apefooter.cpp(192): error
C2668: 
'std::bitset<_Bits>::bitset' : ambiguous call to overloaded function
          with
          [
              _Bits=32
          ]
          c:\program files (x86)\microsoft visual studio
10.0\vc\include\bitset(136): could be
'std::bitset<_Bits>::bitset(_ULonglong)'
          with
          [
              _Bits=32
          ]
          c:\program files (x86)\microsoft visual studio 
10.0\vc\include\bitset(127): or       'std::bitset<_Bits>::bitset(int)'
          with
          [
              _Bits=32
          ]
          while trying to match the argument list '(TagLib::uint)'
  mpcproperties.cpp
d:\audio\audacity\svn\lib-src\taglib\taglib\toolkit\tfile.h(48): warning
C4251: 
'TagLib::FileName::m_name' : class 'std::basic_string<_Elem,_Traits,_Ax>'
needs to have dll-interface to be used by clients of class
'TagLib::FileName'
          with
          [
              _Elem=char,
              _Traits=std::char_traits<char>,
              _Ax=std::allocator<char>
          ]
d:\audio\audacity\svn\lib-src\taglib\taglib\toolkit\tfile.h(49): warning
C4251: 
'TagLib::FileName::m_wname' : class 'std::basic_string<_Elem,_Traits,_Ax>'
needs to have dll-interface to be used by clients of class
'TagLib::FileName'
          with
          [
              _Elem=wchar_t,
              _Traits=std::char_traits<wchar_t>,
              _Ax=std::allocator<wchar_t>
          ]
d:\audio\audacity\svn\lib-src\taglib\taglib\mpc\mpcproperties.cpp(116):
error
C2440: 'initializing' : cannot convert from 'TagLib::uint' to
'std::bitset<_Bits>'
          with
          [
              _Bits=32
          ]
          No constructor could take the source type, or constructor overload
resolution was ambiguous
  mpegheader.cpp
d:\audio\audacity\svn\lib-src\taglib\taglib\mpeg\mpegheader.cpp(171): error
C2668: 'std::bitset<_Bits>::bitset' : ambiguous call to overloaded function
          with
          [
              _Bits=32
          ]
          c:\program files (x86)\microsoft visual studio
10.0\vc\include\bitset(136): could be
'std::bitset<_Bits>::bitset(_ULonglong)'
          with
          [
              _Bits=32
          ]
          c:\program files (x86)\microsoft visual studio 
10.0\vc\include\bitset(127): or       'std::bitset<_Bits>::bitset(int)'
          with
          [
              _Bits=32
          ]
          while trying to match the argument list '(TagLib::uint)' -Ed
Musgrove



      
_______________________________________________
taglib-devel mailing list
taglib-devel at kde.org
https://mail.kde.org/mailman/listinfo/taglib-devel



More information about the taglib-devel mailing list