Доброго времени суток господа. Возникла проблемvка, допустим объявляю класс в class.h
class Class1 {
public:
Class1();
~Class1();
void cbase_init(sqlite3 * db);
};
#include <class.h>
#include <sqlite3.h>
void Class1::cbase_init(sqlite3 * db){
sqlite3_stmt *stmt = NULL;
bool ONE = false;
bool TWO = false;
bool THREE = false;
bool FOUR = false;
sqlite3_prepare(db,
"select name from"
" (select * from sqlite_master union all"
" select * from sqlite_temp_master)"
"where type='table' order by name;", -1, &stmt, NULL);
while (sqlite3_step(stmt) == SQLITE_ROW)
{
if (!strcasecmp((char *) sqlite3_column_text(stmt, 0),
"one"))
ONE = true;
else if (!strcasecmp((char *) sqlite3_column_text(stmt, 0),
"two))
TWO = true;
else if (!strcasecmp((char *) sqlite3_column_text(stmt, 0),
"three"))
THREE = true;
else if (!strcasecmp((char *) sqlite3_column_text(stmt, 0),
"four"))
FOUR = true;
}
sqlite3_finalize(stmt);
}
class.cpp:(.text+0x3d): undefined reference to `sqlite3_prepare'
class.cpp:(.text+0x58): undefined reference to `sqlite3_column_text'
class.cpp:(.text+0xf8): undefined reference to `sqlite3_column_text'