LINUX.ORG.RU

Проблема с libsqlplus или моими кривыми пальцами


0

0

Всем доброго времени суток. Пытаюсь собрать проект, который деался в kdevelop(не мной, я kdevelop никогда до этого не пользовался), программа работает с Mysql и юзает libmysql & libsqlplus. Я переписал папку с проектом себе, исправил в мэйкфайлах путь на тот, который реально у меня на компьютере, переконфигурировал проект, установил все необходимые пакеты для работы с mysql и начал собирать. Однако компилятор выдает ошибки:

/usr/include/sqlplus/sql_query1.hh: In member function ‘SQLQuery& SQLQuery::update(const T&, const T&)’: /usr/include/sqlplus/sql_query1.hh:171: error: ‘sql_use_compare’ was not declared in this scope /usr/include/sqlplus/compare1.hh: In member function ‘bool MysqlCmpCStr<BinaryPred>::operator()(const MysqlRow&) const’: /usr/include/sqlplus/compare1.hh:26: error: ‘cmp2’ was not declared in this scope /usr/include/sqlplus/compare1.hh:26: error: ambiguous overload for ‘operator[]’ in ‘cmp1[index]’ /usr/include/sqlplus/row1.hh:259: note: candidates are: const MysqlColData MysqlRow::operator[](int) const <near match> /usr/include/sqlplus/row1.hh:266: note: virtual const MysqlColData MysqlRow::operator[](unsigned int) const <near match> /usr/include/sqlplus/compare1.hh:26: error: there are no arguments to ‘func’ that depend on a template parameter, so a declaration of ‘func’ must be available /usr/include/sqlplus/compare1.hh:26: error: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated) /usr/include/sqlplus/coldata3.hh: In member function ‘mysql_ColData<Str>::operator MysqlNull<T, B>() const’: /usr/include/sqlplus/coldata3.hh:19: error: there are no arguments to ‘size’ that depend on a template parameter, so a declaration of ‘size’ must be available /usr/include/sqlplus/coldata4.hh: In member function ‘Type mysql_ColData<Str>::conv(Type) const’: /usr/include/sqlplus/coldata4.hh:23: error: there are no arguments to ‘c_str’ that depend on a template parameter, so a declaration of ‘c_str’ must be available /usr/include/sqlplus/set3.hh: In member function ‘std::ostream& MysqlSet<Container>::out_stream(std::ostream&) const’: /usr/include/sqlplus/set3.hh:23: error: there are no arguments to ‘begin’ that depend on a template parameter, so a declaration of ‘begin’ must be available /usr/include/sqlplus/set3.hh:24: error: there are no arguments to ‘end’ that depend on a template parameter, so a declaration of ‘end’ must be available

которые никак не связаны с исходниками программы, которую я собираю. Что это такое? Битый пакет с libqslplus1-dev или же я что-то не настроил или неправильно импортировал проект?


Хм, поставил более старую версию gcc(3.3) - все заработало. Чудеса блин.

MurrVK
() автор топика
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.