title: include id3lib in QT project, C++
body: <p>==================================</p>
  
  <p>Configuration : </p>
  
  <ul>
  <li>Qt Creator 2.8.1</li>
  <li>Qt 5.1.1</li>
  <li>Windows 7 64 bits</li>
  </ul>
  
  <p>==================================</p>
  
  <p>How can I include id3lib library ?</p>
  
  <p>I've already donwloaded required files (.h, .dll, .lib and .exp) from <a href="http://sourceforge.net/projects/id3lib/files/" rel="nofollow">http://sourceforge.net/projects/id3lib/files/</a></p>
  
  <p>I've already included all .h file in my project :</p>
  
  <pre><code>HEADERS  += audioTest.h \
      id3.h \
      id3/writers.h \
      id3/writer.h \
      id3/utils.h \
      id3/tag.h \
      id3/sized_types.h \
      id3/readers.h \
      id3/reader.h \
      id3/misc_support.h \
      id3/io_strings.h \
      id3/io_helpers.h \
      id3/io_decorators.h \
      id3/id3lib_strings.h \
      id3/id3lib_streams.h \
      id3/id3lib_frame.h \
      id3/helpers.h \
      id3/globals.h \
      id3/field.h
  </code></pre>
  
  <p>Then I've included the library : </p>
  
  <pre><code>win32: LIBS += -L$$PWD/id3lib/ -lid3lib
  INCLUDEPATH += $$PWD/id3lib
  DEPENDPATH += $$PWD/id3lib
  win32: PRE_TARGETDEPS += $$PWD/id3lib/id3lib.lib
  </code></pre>
  
  <p>Then, when I execute the bellow example, it tells me</p>
  
  <ul>
  <li><code>undefined reference to ID3_Tag::ID3_Tag(char const*)'</code></li>
  <li><code>undefined reference to 'ID3_Tag::~ID3_Tag()'</code></li>
  <li><code>error: ld returned 1 exit status</code></li>
  </ul>
  
  <p>Code : </p>
  
  <pre><code>ID3_Tag tag("a.mp3");
  </code></pre>
  
  <p>Something wrong with what I've done ? I know <code>undefined reference to *</code> means a bad library inclusion, but I can't find where I failed.</p>
  
  <p>And I can't find solution on the web :</p>
  
  <ul>
  <li><a href="http://www.qtcentre.org/threads/29946-compiling-id3lib-on-windows-Qt" rel="nofollow">Here</a> they decide to use <code>taglib</code>, but I read <a href="http://thefrogprince.tripod.com/id3lib-detail.htm" rel="nofollow">here</a> id3lib was better.</li>
  <li><a href="http://www.linuxquestions.org/questions/programming-9/including-id3lib-523477/" rel="nofollow">Here</a> they say <code>LIBS += /usr/lib/libid3.a</code> works. But not on Windows.</li>
  <li>...</li>
  </ul>
  
  <p>Someone got an idea ?</p>