Linkage Error with Libraries coming as Debian packages
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,