AW: tagLib

Schneck Dennis CIS SDE Dennis.Schneck at heller.biz
Tue Feb 28 13:36:05 UTC 2012


Hi Scott,
i add -ltag in the Project Settings -> make options in kDevelop
But the same problem.
Thanks for help
-Dennis


-----Ursprüngliche Nachricht-----
Von: Scott Wheeler [mailto:wheeler at kde.org] 
Gesendet: Dienstag, 28. Februar 2012 14:18
An: Schneck Dennis CIS SDE
Betreff: Re: tagLib

Hi Dennis --

This really doesn't have anything to do with KDevelop -- this is basic Linux library usage.  Anytime you use a library you have to configure the linker to use it as well.  I don't know how to do that in KDevelop (never used it, don't have it installed), but look for something where you can add options to the project's "linker flags" -- there you'll want to add "-ltag" (which tells the linker to link to TagLib).

Also note, for the future, questions like this should go to the development list:  taglib-devel at kde.org

-Scott

On Feb 27, 2012, at 2:43 PM, Schneck Dennis CIS SDE wrote:

> hi scott,
> is it possible that you release a example code for kDevelop on the 
> Site: http://developer.kde.org/~wheeler/taglib/api/
> thanks a lot
> best regards
> dennis
>  
>  
> #include <taglib/fileref.h>
> #include <taglib/tag.h>
>  
> ..
>  
> TagLib::FileRef f("Latex Solar Beef.mp3");
>  
> ...
>  
>  
>  
> make: *** [all] Error 2 /home/developer/projects/mcm/build> make 
> Scanning dependencies of target mcm [ 33%] Building CXX object 
> CMakeFiles/mcm.dir/mcm.cpp.o Linking CXX executable mcm
> CMakeFiles/mcm.dir/mcm.cpp.o: In function `mcm::startMerge()':
> mcm.cpp:(.text+0x15a5): undefined reference to `TagLib::FileRef::FileRef(char const*, bool, TagLib::AudioProperties::ReadStyle)'
> mcm.cpp:(.text+0x15af): undefined reference to `TagLib::FileRef::~FileRef()'
> collect2: ld returned 1 exit status
> make[2]: *** [mcm] Error 1
> make[1]: *** [CMakeFiles/mcm.dir/all] Error 2
> make: *** [all] Error 2
>  
>  
> i use opensuse 12.1 with kDevelop 4.2 and I have taglib and 
> taglib-devel installed
>  
>  



More information about the taglib-devel mailing list