Note that there are some explanatory texts on larger screens.

plurals
  1. POfailed to link example program using id3 library
    primarykey
    data
    text
    <p>i am trying to use <a href="http://id3lib.sourceforge.net/" rel="nofollow">lib id3</a> to access mp3 tags with the ultimate aim of accessing album art from mp3 music files. </p> <p>The problem is that i have even failed to compile the example programs that come with the id3 library. problem 1. trying to compile an example program in my project first generates this error</p> <pre><code>1&gt;*** NOTICE *** (not a real error) 1&gt;* You should include a define in your project which reflect how you link the library 1&gt;* If you use id3lib.lib or libprj/id3lib.dsp (you link static) you should add 1&gt;* ID3LIB_LINKOPTION=1 to your preprocessor definitions of your project. 1&gt;* If you use id3lib.dll (you link dynamic) you should add ID3LIB_LINKOPTION=3 1&gt;* to your preprocessor definitions of your project. </code></pre> <p>when i try to add </p> <pre><code>#define ID3LIB_LINKOPTION 1 </code></pre> <p>to my source file , i get many more errors.</p> <pre><code>1&gt;Linking... 1&gt;msvcprtd.lib(MSVCP90D.dll) : error LNK2005: "public: void __thiscall std::basic_ios&lt;char,struct std::char_traits&lt;char&gt; &gt;::setstate(int,bool)" (?setstate@?$basic_ios@DU?$char_traits@D@std@@@std@@QAEXH_N@Z) already defined in id3lib.lib(tag_parse.obj) 1&gt;msvcprtd.lib(MSVCP90D.dll) : error LNK2005: "public: int __thiscall std::basic_streambuf&lt;char,struct std::char_traits&lt;char&gt; &gt;::sputn(char const *,int)" (?sputn@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEHPBDH@Z) already defined in id3lib.lib(tag_file.obj) 1&gt;msvcprtd.lib(MSVCP90D.dll) : error LNK2005: "public: static bool __cdecl std::char_traits&lt;char&gt;::eq_int_type(int const &amp;,int const &amp;)" (?eq_int_type@?$char_traits@D@std@@SA_NABH0@Z) already defined in id3lib.lib(tag_parse.obj) 1&gt;msvcprtd.lib(MSVCP90D.dll) : error LNK2005: "public: static int __cdecl std::char_traits&lt;char&gt;::eof(void)" (?eof@?$char_traits@D@std@@SAHXZ) already defined in id3lib.lib(tag_parse.obj) </code></pre> <p>From these errors i assume that the cause of the problems is id3lib.lib in the additional dependencies. But even if i remove it from the dependencies i still get these errors</p> <pre><code>1&gt;Linking... 1&gt;main.obj : error LNK2019: unresolved external symbol "public: virtual __thiscall ID3_Tag::~ID3_Tag(void)" (??1ID3_Tag@@UAE@XZ) referenced in function _main 1&gt;main.obj : error LNK2019: unresolved external symbol "public: class ID3_Field &amp; __thiscall ID3_Frame::Field(enum ID3_FieldID)const " (?Field@ID3_Frame@@QBEAAVID3_Field@@W4ID3_FieldID@@@Z) referenced in function _main 1&gt;main.obj : error LNK2019: unresolved external symbol "public: bool __thiscall ID3_Frame::Contains(enum ID3_FieldID)const " (?Contains@ID3_Frame@@QBE_NW4ID3_FieldID@@@Z) referenced in function _main 1&gt;main.obj : error LNK2019: unresolved external symbol "public: class ID3_Frame * __thiscall ID3_Tag::Find(enum ID3_FrameID)const " (?Find@ID3_Tag@@QBEPAVID3_Frame@@W4ID3_FrameID@@@Z) referenced in function _main 1&gt;main.obj : error LNK2019: unresolved external symbol "public: __thiscall ID3_Tag::ID3_Tag(char const *)" (??0ID3_Tag@@QAE@PBD@Z) referenced in function _main 1&gt;C:\Users\GuestUser\Documents\Visual Studio 2008\Projects\idlib example\Debug\idlib example.exe : fatal error LNK1120: 5 unresolved externals </code></pre> <p>Please help me. Am beginning to feel like a c++ newbie :(</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload