LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 08-05-2004, 04:16 PM   #1
stackoverflow32
LQ Newbie
 
Registered: Aug 2004
Posts: 6

Rep: Reputation: 0
Question Linkage Error with Libraries coming as Debian packages


Hi,
I could also have written this into the programming section but as the "error" only occurs when using library bindings out of debian packages, ill place it here. (And maybe in programming also)

My program uses several dynamic libraries. TagLib is one of them and so I installed it via apt-get on my dev system. But when linking against TagLib via: g++ -ltag mysources-that-use-taglib.cpp
I got a lot of errors of undefined references to methods from TagLib.
That time I downloaded the sources for TagLib and built and installed the source tarball manually and guess what ? No linking errors ! I thought that the taglib debian package was broken and had no symbols in it that i could link against so didnt mind.

Now its the same situation again. I extended the program to use the xerces-c xml parser library from the Apache Project. Again I installed the necessary debian packages libxerces25 and libxerces25-dev.
This time I got exactly the same mess when trying to compile. Undefined references !!!

And here is my final question: Is there something special about linking to debian packaged libraries or did I use the wrong type of linking command. Currently I use : g++ -lxerces-c -lanylib source.cpp

Every library is found by the way. It just seems as if there were no symbols or references to link against.

Help me !! Im stuck with the whole project until I figured this out.

Thanks in advance,
Marc
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
How does C libraries linkage work? Nerox Programming 4 12-25-2004 10:36 PM
orphan packages and libraries alexrait1 Slackware 1 07-05-2004 06:18 PM
Debian install error: packages.gz not pre-downloaded resipsaloquitur Linux - Newbie 0 05-19-2004 06:24 PM
error: cannot get exclusive lock on /var/lib/rpm/Packages error: cannot open Packages inward_eye Linux - Software 3 08-24-2003 03:07 PM
need help urgently!!! display not coming and error mesage coming when user is logging rddreamz Linux - Newbie 0 08-14-2003 11:11 AM


All times are GMT -5. The time now is 09:23 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration