Ответ
tedim 09.02.2004 19:32
...не могу откомпилировать:
#make
make all-recursive
Making all in libltdl
make all-am
if ./libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I. -I../../parser3/src/sql -I./libltdl -I/usr/local/include/mysql -g -O2 -MT parser3mysql.lo -MD -MP -MF ".deps/parser3mysql.Tpo" -c -o parser3mysql.lo `test -f 'parser3mysql.C' || echo './'`parser3mysql.C; then mv ".deps/parser3mysql.Tpo" ".deps/parser3mysql.Plo"; else rm -f ".deps/parser3mysql.Tpo"; exit 1; fi
g++ -DHAVE_CONFIG_H -I. -I. -I. -I../../parser3/src/sql -I./libltdl -I/usr/local/include/mysql -g -O2 -MT parser3mysql.lo -MD -MP -MF .deps/parser3mysql.Tpo -c parser3mysql.C -fPIC -DPIC
parser3mysql.C: In function `SQL_Driver* create()':
parser3mysql.C:367: error: cannot allocate an object of type `MySQL_Driver'
parser3mysql.C:367: error: because the following virtual functions are
abstract:
../../parser3/src/sql/pa_sql_driver.h:131: error: virtual void
SQL_Driver::commit(SQL_Driver_services&, void*)
../../parser3/src/sql/pa_sql_driver.h:133: error: virtual void
SQL_Driver::rollback(SQL_Driver_services&, void*)
../../parser3/src/sql/pa_sql_driver.h:136: error: virtual bool
SQL_Driver::ping(SQL_Driver_services&, void*)
../../parser3/src/sql/pa_sql_driver.h:140: error: virtual const char*
SQL_Driver::quote(SQL_Driver_services&, void*, const char*, unsigned int)
../../parser3/src/sql/pa_sql_driver.h:144: error: virtual void
SQL_Driver::query(SQL_Driver_services&, void*, const char*, long unsigned
int, long unsigned int, SQL_Driver_query_event_handlers&)
*** Error code 1
...
Ошибка для функции
extern "C" SQL_Driver *SQL_DRIVER_CREATE() {
return new MySQL_Driver();
}
Посоветуйте...
- MySQL, tedim 08.02.2004 18:00