Question:Taglib on wince 6.0

苗澎锋 mpf125 at
Tue Dec 21 16:37:38 CET 2010


I want to use taglib to extract id3 from media files on wince 6.0. When I use VS2005 to build taglib , it have many the same warnings as the follow:
/toolkit\tfile.h : 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'
1>        with
1>        [
1>            _Elem=char,
1>            _Traits=std::char_traits<char>,
1>            _Ax=std::allocator<char>
1>        ] 

How to resolve this? Has it bad effect to my Application when I use it?

if I modify the class FileName to the followings:

class TAGLIB_API FileName
    FileName(const wchar_t *name) : m_pwname(name) {}
    FileName(const char *name) : m_pname(name) {}
    operator const wchar_t *() const { return m_pwname; }
    operator const char *() const { return m_pname; }
    const char* m_pname;
    const wchar_t* m_pwname;

,the above warnings do not appear. But I don't know it is ok to use the Tablib.dll.

As we know, MSVC has many options to build the library, such as UNICODE(Preprocessor Definitions), treat wchar_t as build in type, Runtime library...

What should we select?

I am a newer to use the taglib and not familiar to MSVC, so I  want to have someone to help me.

Thank you for your help!



-------------- next part --------------
An HTML attachment was scrubbed...

More information about the taglib-devel mailing list