Hello mysql gurus,
I upgraded to Fedora Core 3 and now I can't compile mysql++-1.7.21. I did
[root@localhost mysql++-1.7.21]# ./configure --prefix=/usr/local
--includedir=/usr/local/include/mysql++
and it looks OK.
Then was
[root@localhost mysql++-1.7.21]# make
and after some time:
...
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I. -I../lib -I/usr/include/mysql -g
-O2 -c connection.cc -MT connection.lo -MD -MP -MF
.deps/connection.TPlo -fPIC -DPIC -o .libs/connection.lo
In file included from ./manip.h:8,
from ./vallist.h:4,
from ./row.h:8,
from ./result.h:11,
from ./query.h:8,
from connection.h:7,
from connection.cc:4:
./sql_query.h: In member function `mysqlpp::SQLQuery&
mysqlpp::SQLQuery::update(const T&, const T&)':
./sql_query.h:241: error: `sql_use_compare' undeclared (first use this
function)
./sql_query.h:241: error: (Each undeclared identifier is reported only
once for each function it appears in.)
In file included from connection.h:7,
from connection.cc:4:
./query.h: In member function `void
mysqlpp::Query::storein_sequence(Seq&, mysqlpp::SQLQueryParms&,
mysqlpp::query_reset)':
./query.h:80: error: invalid use of undefined type `struct
mysqlpp::Connection'
./defs.h:28: error: forward declaration of `struct mysqlpp::Connection'
./query.h: In member function `void mysqlpp::Query::storein_set(Set&,
mysqlpp::SQLQueryParms&, mysqlpp::query_reset)':
./query.h:86: error: invalid use of undefined type `struct
mysqlpp::Connection'
./defs.h:28: error: forward declaration of `struct mysqlpp::Connection'
./query.h: In member function `void
mysqlpp::Query::storein_sequence(Sequence&, const char*)':
./query.h:91: error: invalid use of undefined type `struct
mysqlpp::Connection'
./defs.h:28: error: forward declaration of `struct mysqlpp::Connection'
./query.h: In member function `void mysqlpp::Query::storein_set(Set&,
const char*)':
./query.h:96: error: invalid use of undefined type `struct
mysqlpp::Connection'
./defs.h:28: error: forward declaration of `struct mysqlpp::Connection'
./query.h: In member function `void mysqlpp::Query::storein(T&,
mysqlpp::SQLQueryParms&, mysqlpp::query_reset)':
./query.h:102: error: invalid use of undefined type `struct
mysqlpp::Connection'
./defs.h:28: error: forward declaration of `struct mysqlpp::Connection'
./query.h: In member function `void mysqlpp::Query::storein(T&, const
char*)':
./query.h:107: error: invalid use of undefined type `struct
mysqlpp::Connection'
./defs.h:28: error: forward declaration of `struct mysqlpp::Connection'
make[3]: *** [connection.lo] Error 1
make[3]: Leaving directory `/home/it-sokol/mysql++/mysql++-1.7.21/lib'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/it-sokol/mysql++/mysql++-1.7.21/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/it-sokol/mysql++/mysql++-1.7.21'
make: *** [all] Error 2
Under FC2 was all OK
Thank you for a help
cgifalco