Hello,

I want to use id3libs library, but I can't include it. How come ?

- I have downloaded libraries here (.h, .dll, .lib, .exp and .a).

- I put all these files in one folder, so I've got this :
-> audioProject/
- a.mp3
- audioProject.pro
- audioProject.pro.user
- audioProject.cpp
- audioProject.h
- id3.h
- main.cpp
-> id3/
- field.h
- globals.h
- id3lib.dll
- id3lib.lib
- ...


- I have added bellow lines in my .pro file :
Qt Code:
  1. INCLUDEPATH += $$PWD/id3/
  2. LIBS += -L$$PWD/id3/ -lid3lib
  3. HEADERS += audioProject.h # I did not included id3lib headers
To copy to clipboard, switch view to plain text mode 

- I wrote these lines in my audioProject.cpp file :
Qt Code:
  1. #include <id3/tag.h>
To copy to clipboard, switch view to plain text mode 

- But when I try an example, I've got errors :
Qt Code:
  1. ID3_Tag tag("a.mp3");
To copy to clipboard, switch view to plain text mode 

Here are compilation errors :

Qt Code:
  1. undefined reference to ID3_Tag::ID3_Tag(char const*)
  2. undefined reference to ID3_Tag::~ID3_Tag()
To copy to clipboard, switch view to plain text mode 


"undefined reference" is because of bad libraries inclusion. But in my case, I am confused.
How can I fix it ? (I am using Qt 5.1.1, Qt Creator 4.8.2 on Windows 7 64 bits).

Thank you