On Fri, 30 Dec 2011 20:27:24 -0800 (PST)
Darrell Anderson <humanreadable(a)yahoo.com> wrote:
Slowly, ever so slowly, I'm trying to learn C++. I
have this Big Fat
Book on my desk and almost every day I read, tinker, and study code.
While trying to compile koffice I ran into these fatal errors:
../../.libs/libkexidb.so: undefined reference to
`KexiDB::Parser::~Parser()' ../../.libs/libkexidb.so: undefined
reference to `KexiDB::Parser::statement()
const' ../../.libs/libkexidb.so: undefined reference to
`KexiDB::Parser::parse(QString const&)' ../../.libs/libkexidb.so:
undefined reference to `tname(int)' ../../.libs/libkexidb.so:
undefined reference to
`KexiDB::Parser::Parser(KexiDB::Connection*)' ../../.libs/libkexidb.so:
undefined reference to `KexiDB::Parser::query()'
If the g++ error lists a line in a *.cpp file, then usually the
"undefined reference to" error means a missing header file that
declares the namespace or function.
In this particular error, g++ listed a static library. From what I've
read, this means something is awry in the linking process and not in
the code itself. Am I on the right track?
If not then please set me straight. :)
If yes, then how do I fix the error? I presume something in the
Makefiles? Does the error provide me clues as to where I need to fix
the problem?
You need to add the library containing the missing symbols to the
linker flags.
Trying to learn! Thanks!
Darrell
---------------------------------------------------------------------
To unsubscribe, e-mail:
trinity-devel-unsubscribe(a)lists.pearsoncomputing.net For additional
commands, e-mail: trinity-devel-help(a)lists.pearsoncomputing.net Read
list messsages on the Web archive:
http://trinity-devel.pearsoncomputing.net/ Please remember not to
top-post:
http://trinity.pearsoncomputing.net/mailing_lists/#top-posting