Overview
Features
Download
Documentation
Community
Add-Ons & Services

Poco Data::MySQL compilation

Please post support and help requests here.

Poco Data::MySQL compilation

Postby starthis » 04 Feb 2009, 20:57

I am trying to compile to Poco libs on an embedded system. Amongst some other libs I want to use Data::MySQL.
I cannot get the mysql part to compile.

The following compile error occurs :

In file included from src/Binder.cpp:37:
include/Poco/Data/MySQL/Binder.h:110: error: ISO C++ forbids declaration of `MYSQL_BIND' with no type
include/Poco/Data/MySQL/Binder.h:110: error: expected `;' before '*' token
include/Poco/Data/MySQL/Binder.h:125: error: `MYSQL_BIND' was not declared in this scope
include/Poco/Data/MySQL/Binder.h:125: error: template argument 1 is invalid
include/Poco/Data/MySQL/Binder.h:125: error: template argument 2 is invalid
include/Poco/Data/MySQL/Binder.h:125: error: ISO C++ forbids declaration of `_bindArray' with no type
...

I don't find any reference to MYSQL_BIND in the mysql.h. So I was wondering what is the minimum version of the mysql headers needed to compile Poco::Data::MySQL.
This embedded system is based on Fedora Core 3 and has version 3.23.58 included.

Thanks.
starthis
 
Posts: 7
Joined: 04 Feb 2009, 20:49

Re: Poco Data::MySQL compilation

Postby guenter » 04 Feb 2009, 22:00

I think you need at least MySQL 4.1.
guenter
 
Posts: 1119
Joined: 11 Jul 2006, 16:27
Location: Austria

Re: Poco Data::MySQL compilation

Postby starthis » 05 Feb 2009, 20:27

I upgraded to MySQL 4.1.22 and it still doesn't build

src/SessionImpl.cpp: In constructor `Poco::Data::MySQL::SessionImpl::SessionImpl(const std::string&)':
src/SessionImpl.cpp:147: error: `MYSQL_OPT_RECONNECT' undeclared (first use this function)

I think this type is introduced in MySQL 5.0
starthis
 
Posts: 7
Joined: 04 Feb 2009, 20:49

Re: Poco Data::MySQL compilation

Postby starthis » 05 Feb 2009, 21:10

It builds fine with MySQL >= 5.0 in case anybody else is wondering ;)
starthis
 
Posts: 7
Joined: 04 Feb 2009, 20:49


Return to Support

Who is online

Users browsing this forum: No registered users and 2 guests

cron