trinity-devel@lists.pearsoncomputing.net

Message: previous - next
Month: January 2012

Re: [trinity-devel] "undefined reference to" error

From: Darrell Anderson <humanreadable@...>
Date: Mon, 2 Jan 2012 18:30:23 -0800 (PST)
> > > The undefined reference to "KexiDB::" implies a
> class or namespace
> > > (still
> > learning terminology!), but in which *.cpp or *.h
> file?
> >
> > cd to the source directory then grep -r "KexiDB::" *
> I'd rather grep "Parser::~Parser()" since namespaces can be
> delimited
> by something like
> namespace KexiDB {
>     Parser::~Parser() {
>         // the function
>     }
> }
> which wouldn't be detected by your grep command.
> >
> > See if you get a hit.

Thanks both for helping!

Actually, Several days ago I did what both of you suggested. :)

I just don't know what to do next. (Newbie!)

Searching for KexiDB:: results in overload. Too many. Further, the KexiDB class/namespace is used in many *.cpp files.

All of the errors seem to be located from within kexi/kexidb/parser/parser.cpp.

../../.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()'


Thanks!

Darrell