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/
- I have added bellow lines in my .pro file :
INCLUDEPATH += $$PWD/id3/
LIBS += -L$$PWD/id3/ -lid3lib
HEADERS += audioProject.h # I did not included id3lib headers
INCLUDEPATH += $$PWD/id3/
LIBS += -L$$PWD/id3/ -lid3lib
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 :
#include <id3/tag.h>
#include <id3/tag.h>
To copy to clipboard, switch view to plain text mode
- But when I try an example, I've got errors :
ID3_Tag tag("a.mp3");
ID3_Tag tag("a.mp3");
To copy to clipboard, switch view to plain text mode
Here are compilation errors :
undefined reference to ID3_Tag::ID3_Tag(char const*)
undefined reference to ID3_Tag::~ID3_Tag()
undefined reference to ID3_Tag::ID3_Tag(char const*)
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
Bookmarks