LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 10-06-2003, 06:44 PM   #1
jpc82
Member
 
Registered: Oct 2001
Distribution: Gentoo
Posts: 140

Rep: Reputation: 15
id3lib errors


I'm trying to get id3lib working with my program but I can't seem to get it to compile.

This is my code

#include <id3/tag.h>


int main()
{

ID3_Tag myTag;


return 0;
}

and I compile it with g++ id3.cpp and this is what happens

/tmp/cc9Y4w3U.o(.text+0x25): In function `main':
: undefined reference to `ID3_Tag::ID3_Tag[in-charge](char const*)'
/tmp/cc9Y4w3U.o(.text+0x33): In function `main':
: undefined reference to `ID3_Tag::~ID3_Tag [in-charge]()'
collect2: ld returned 1 exit status


What is going on? This is almost exactly cut and paste from thier web site
 
Old 10-06-2003, 06:51 PM   #2
jpc82
Member
 
Registered: Oct 2001
Distribution: Gentoo
Posts: 140

Original Poster
Rep: Reputation: 15
I finally found it

I need to add -lid3 and -lz to the command line
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
compiling grip with id3lib for id3v2 support xBillyGoatx Linux - Software 1 12-02-2006 06:34 PM
C++ Segmentation Fault id3lib bendeco13 Programming 3 10-26-2005 08:05 PM
Yammi and id3lib problem Tsoots Linux - Software 1 03-13-2004 06:35 AM
configuring gtkpod id3lib error RinGz Linux - Software 1 12-28-2003 03:08 PM
QMAIL errors errors.. YourForum Linux - Software 0 11-27-2003 12:30 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:00 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration