Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Aug 19th, 2005, 6:33 PM   #1
mleonid
Newbie
 
Join Date: Aug 2005
Posts: 12
Rep Power: 0 mleonid is on a distinguished road
Id3 tags of mp3 files, can't get it to work please help

I'm using VC++ 6.0
I'd like to access mp3 tags and change things like song title, artist, etc..

I found this library which does what i need:
https://sourceforge.net/projects/id3lib/

I downloaded the library and followed the instructions about using it, but I always get the same error of "id3/tag.h" not found.

I'm pretty new to VC, I must be missing something. I'd really appreciate it if you took a look at this library and helped me get it to work in my project, I've been messing with it for almost a week now.
What are the exact steps I need to do in VC 6.0 to use this library?

One more little thing that i don't understand is how this header I'm trying to use is made. It's not in the ID3LIB files I downloaded, so it is built somehow on the way. maybe someone can enlighten me and tell me how it works.

Thanks a lot
mleonid is offline   Reply With Quote
Old Aug 19th, 2005, 7:33 PM   #2
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
Put the files in the include folder supplied into your Visual Studio include folder. This is, most likely, at Visual Studio Path\include.
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Old Aug 19th, 2005, 7:53 PM   #3
mleonid
Newbie
 
Join Date: Aug 2005
Posts: 12
Rep Power: 0 mleonid is on a distinguished road
I can't find such folder.
The library I downloaded has a project in it that uses this library, yet I can't find out what settings differ between this project and mine.
The files of this library are scattered all around in its folder, there's some text file with directions which I followed but it didn't help.
You could take a look at that library via that link i posted at the beginning, that would clarify things a bit.
mleonid is offline   Reply With Quote
Old Aug 19th, 2005, 8:07 PM   #4
Cerulean
Professional Programmer
 
Cerulean's Avatar
 
Join Date: Apr 2005
Location: London, England
Posts: 459
Rep Power: 4 Cerulean is on a distinguished road
Haven't got an answer to your question, but i'd like to strongly recommend the use of TagLib instead of id3lib. TagLib is much faster (6 times faster, according the homepage) and with a much cleaner, object-orientated API.
Cerulean is offline   Reply With Quote
Old Aug 19th, 2005, 8:31 PM   #5
mleonid
Newbie
 
Join Date: Aug 2005
Posts: 12
Rep Power: 0 mleonid is on a distinguished road
Thanks a lot, that is much better.
would you mind telling me how do I use it in my Visual C++ 6 project?
mleonid is offline   Reply With Quote
Old Aug 19th, 2005, 10:59 PM   #6
nindoja
Programmer
 
Join Date: Jun 2005
Posts: 92
Rep Power: 4 nindoja is on a distinguished road
You have 2 options:

1) Do #include "blah/blah.h" instead of #include <blah/blah.h>
2) Copy the files for the library to your visual studio path\vc98\include folder
nindoja is offline   Reply With Quote
Old Aug 20th, 2005, 7:59 AM   #7
mleonid
Newbie
 
Join Date: Aug 2005
Posts: 12
Rep Power: 0 mleonid is on a distinguished road
Thanks a lot guys
mleonid is offline   Reply With Quote
Old Aug 20th, 2005, 9:40 AM   #8
mleonid
Newbie
 
Join Date: Aug 2005
Posts: 12
Rep Power: 0 mleonid is on a distinguished road
wops, I get tons of errors within the library files.
things like "long long is illegal" missing ;s

could it be VC's fault?
mleonid is offline   Reply With Quote
Old Aug 20th, 2005, 3:58 PM   #9
nindoja
Programmer
 
Join Date: Jun 2005
Posts: 92
Rep Power: 4 nindoja is on a distinguished road
Please post the code that is causing the problems, and then also post the compile log so that we can see exactly what is going on. Although, it sounds to me like you forgot to include the actual library (*.dll) in your project. If you didn't do that, or don't know how, google for it.
nindoja is offline   Reply With Quote
Old Aug 20th, 2005, 9:19 PM   #10
mleonid
Newbie
 
Join Date: Aug 2005
Posts: 12
Rep Power: 0 mleonid is on a distinguished road
i get the errors on a simple: TagLib::ID3v2::Tag t;
I can't find any *.dll files in the project's folder

I get 102 error for that, here's some of them:


c:\program files\microsoft visual studio\vc98\include\taglib\toolkit\tlist.tcc(47) : error C2059: syntax error : ''template<''
c:\program files\microsoft visual studio\vc98\include\taglib\toolkit\tlist.tcc(47) : error C2065: 'T' : undeclared identifier
c:\program files\microsoft visual studio\vc98\include\taglib\toolkit\tlist.tcc(47) : error C2955: 'List' : use of class template requires template argument list
c:\program files\microsoft visual studio\vc98\include\taglib\toolkit\tlist.h(239) : see declaration of 'List'
c:\program files\microsoft visual studio\vc98\include\taglib\toolkit\tlist.tcc(61) : error C2954: template definitions cannot nest
c:\program files\microsoft visual studio\vc98\include\taglib\toolkit\tlist.tcc(62) : error C2059: syntax error : ''template<''
c:\program files\microsoft visual studio\vc98\include\taglib\toolkit\tlist.tcc(62) : error C2955: 'List' : use of class template requires template argument list
c:\program files\microsoft visual studio\vc98\include\taglib\toolkit\tlist.h(239) : see declaration of 'List'
c:\program files\microsoft visual studio\vc98\include\taglib\toolkit\tlist.tcc(62) : error C2065: 'TP' : undeclared identifier
c:\program files\microsoft visual studio\vc98\include\taglib\toolkit\tlist.tcc(62) : error C2059: syntax error : '>'
c:\program files\microsoft visual studio\vc98\include\taglib\toolkit\tlist.tcc(87) : error C2143: syntax error : missing ';' before '{'
c:\program files\microsoft visual studio\vc98\include\taglib\toolkit\tlist.tcc(89) : error C2143: syntax error : missing ';' before '}'
c:\program files\microsoft visual studio\vc98\include\taglib\toolkit\tlist.tcc(93) : error C2143: syntax error : missing ';' before '{'
c:\program files\microsoft visual studio\vc98\include\taglib\toolkit\tlist.tcc(95) : error C2143: syntax error : missing ';' before '}'
c:\program files\microsoft visual studio\vc98\include\taglib\toolkit\tlist.tcc(99) : error C2143: syntax error : missing ';' before '{'
c:\program files\microsoft visual studio\vc98\include\taglib\toolkit\tlist.tcc(102) : error C2143: syntax error : missing ';' before '}'
c:\program files\microsoft visual studio\vc98\include\taglib\toolkit\tlist.tcc(106) : error C2143: syntax error : missing ';' before '{'
c:\program files\microsoft visual studio\vc98\include\taglib\toolkit\tlist.tcc(108) : error C2955: 'list' : use of class template requires template argument list
c:\program files\microsoft visual studio\vc98\include\list(415) : see declaration of 'list'
c:\program files\microsoft visual studio\vc98\include\taglib\toolkit\tlist.tcc(109) : error C2143: syntax error : missing ';' before '}'
c:\program files\microsoft visual studio\vc98\include\taglib\toolkit\tlist.tcc(113) : error C2143: syntax error : missing ';' before '{'
c:\program files\microsoft visual studio\vc98\include\taglib\toolkit\tlist.tcc(114) : error C2955: 'list' : use of class template requires template argument list
c:\program files\microsoft visual studio\vc98\include\list(415) : see declaration of 'list'
c:\program files\microsoft visual studio\vc98\include\taglib\toolkit\tlist.tcc(115) : error C2143: syntax error : missing ';' before '}'
c:\program files\microsoft visual studio\vc98\include\taglib\toolkit\tlist.tcc(119) : error C2143: syntax error : missing ';' before '{'
c:\program files\microsoft visual studio\vc98\include\taglib\toolkit\tlist.tcc(121) : error C2955: 'list' : use of class template requires template argument list
c:\program files\microsoft visual studio\vc98\include\list(415) : see declaration of 'list'
c:\program files\microsoft visual studio\vc98\include\taglib\toolkit\tlist.tcc(122) : error C2143: syntax error : missing ';' before '}'
c:\program files\microsoft visual studio\vc98\include\taglib\toolkit\tlist.tcc(126) : error C2143: syntax error : missing ';' before '{'
c:\program files\microsoft visual studio\vc98\include\taglib\toolkit\tlist.tcc(127) : error C2955: 'list' : use of class template requires template argument list
c:\program files\microsoft visual studio\vc98\include\list(415) : see declaration of 'list'
c:\program files\microsoft visual studio\vc98\include\taglib\toolkit\tlist.tcc(128) : error C2143: syntax error : missing ';' before '}'
c:\program files\microsoft visual studio\vc98\include\taglib\toolkit\tlist.tcc(132) : error C2143: syntax error : missing ';' before '{'
c:\program files\microsoft visual studio\vc98\include\taglib\toolkit\tlist.tcc(134) : error C2955: 'list' : use of class template requires template argument list
c:\program files\microsoft visual studio\vc98\include\list(415) : see declaration of 'list'
c:\program files\microsoft visual studio\vc98\include\taglib\toolkit\tlist.tcc(134) : error C2065: 'item' : undeclared identifier
c:\program files\microsoft visual studio\vc98\include\taglib\toolkit\tlist.tcc(135) : error C2143: syntax error
mleonid is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 4:35 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC