No matching function error

Douglas Schmidt douglaslondrina at gmail.com
Wed Oct 1 21:01:59 CEST 2008


Hi,

Sorry for the "help-me to fix" question, but I'm having a "No matching
function error" for the TagLib::FileRef described bellow:

         make all
         Building file: ../main.cpp
         Invoking: GCC C++ Compiler
         g++ -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"main.d"
-MT"main.d" -o"main.o" "../main.cpp"
         In file included from ../main.cpp:2:
         /usr/local/include/taglib/fileref.h:107: error: 'File' declared as
a 'virtual' field
         /usr/local/include/taglib/fileref.h:107: error: expected ';' before
'*' token
         /usr/local/include/taglib/fileref.h:127: error: expected `)' before
'fileName'
         /usr/local/include/taglib/fileref.h:136: error: expected `)' before
'*' token
         /usr/local/include/taglib/fileref.h:179: error: expected ';' before
'*' token
         /usr/local/include/taglib/fileref.h:216: error: 'StringList' does
not name a type
         /usr/local/include/taglib/fileref.h:250: error: expected ';' before
'*' token
         ../main.cpp: In function 'int main()':
         ../main.cpp:6: error: no matching function for call to
'TagLib::FileRef::FileRef(const char [50])'
         /usr/local/include/taglib/fileref.h:141: note: candidates are:
TagLib::FileRef::FileRef(const TagLib::FileRef&)
         /usr/local/include/taglib/fileref.h:116: note:
TagLib::FileRef::FileRef()
         make: *** [main.o] Error 1

Is the "TagLib::FileRef::FileRef(const char [50])" normal?
The same error occurs when I try to pass a const char*, and a cast to
(FileName) returns that FileName doesn't name a type.

I already tried the Debian 1.5.3 dev package and to compile the 1.5 source,
both with same results.

What I'm missing?

Thanks in advance.
-- 
-
Douglas Schmidt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/taglib-devel/attachments/20081001/20b6d705/attachment.htm 


More information about the taglib-devel mailing list