<div dir="ltr"><div><div><div><div><div><div><div>Dear Sirs, Madams,<br></div>Congratulations to the good work you are doing. However I have problem with incorporating TagLib into my project. I have been able to build Taglib and I have the library files. I followed Qts wizard on how to add 3rd party libraries into Qt and was successful but I can't use it even after adding the necessary files at main. <br></div>For eg. when write this code:<br><br></div>#include <QApplication><br></div>#include <taglib/fileref.h><br></div>#include <taglib/taglib.h><br></div><div>#include <QDebug><br></div><br></div>int main(int arg, char** argc)<br>{<br> <span style="color:rgb(128,0,128)">TagLib</span>::<span style="color:rgb(128,0,128)">FileRef</span><span style="color:rgb(192,192,192)"> </span>*source<span style="color:rgb(192,192,192)"> </span>=<span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,128,0)">new</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,0,128)">TagLib</span>::<span style="color:rgb(128,0,128)">FileRef</span>(<span style="color:rgb(0,128,0)">"c:/7</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">Days.mp3"</span>);
<pre style="margin:0px;text-indent:0px"><br></pre>
<pre style="margin:0px;text-indent:0px"><span style="color:rgb(192,192,192)"> </span>qDebug()<<<span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">"Song</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">Artist:</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">"</span><span style="color:rgb(192,192,192)"> </span><<<span style="color:rgb(192,192,192)"> </span>source->tag()-><span style="font-style:italic;color:rgb(0,0,0)">artist</span>().to8Bit(<span style="color:rgb(128,128,0)">true</span>).data();<br><br></pre><pre style="margin:0px;text-indent:0px">return 0;<br>}<br><br></pre><pre style="margin:0px;text-indent:0px">I get the following errors:<br><br>main.obj:-1: error: LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __cdecl TagLib::String::~String(void)" (__imp_??1String@TagLib@@UEAA@XZ) referenced in function main<br>main.obj:-1: error: LNK2019: unresolved external symbol "__declspec(dllimport) public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl TagLib::String::to8Bit(bool)const " (__imp_?to8Bit@String@TagLib@@QEBA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@_N@Z) referenced in function main<br>main.obj:-1: error: LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl TagLib::FileName::FileName(char const *)" (__imp_??0FileName@TagLib@@QEAA@PEBD@Z) referenced in function main<br>main.obj:-1: error: LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl TagLib::FileRef::FileRef(class TagLib::FileName,bool,enum TagLib::AudioProperties::ReadStyle)" (__imp_??0FileRef@TagLib@@QEAA@VFileName@1@_NW4ReadStyle@AudioProperties@1@@Z) referenced in function main<br>main.obj:-1: error: LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __cdecl TagLib::FileRef::~FileRef(void)" (__imp_??1FileRef@TagLib@@UEAA@XZ) referenced in function "public: virtual void * __cdecl TagLib::FileRef::`scalar deleting destructor'(unsigned int)" (??_GFileRef@TagLib@@UEAAPEAXI@Z)<br>main.obj:-1: error: LNK2019: unresolved external symbol "__declspec(dllimport) public: class TagLib::Tag * __cdecl TagLib::FileRef::tag(void)const " (__imp_?tag@FileRef@TagLib@@QEBAPEAVTag@2@XZ) referenced in function main<br>release\Mappa.exe:-1: error: LNK1120: 6 unresolved externals<br><br></pre><pre style="margin:0px;text-indent:0px">Please what am I missing? Your response would be deeply appreciated. Thank you<br></pre></div>