From: Jonathan W. <co...@co...> - 2004-12-27 19:18:52
|
First of all, sorry for the delay in approving this mail for delivery, but I've been away for Christmas. On Sat, Dec 25, 2004 at 05:18:41AM +0100, Christoffer Brodd-Reijer wrote: > A time ago I had several problems getting MySQL++ to work. It was too > difficult and not very easy to install and use. Then I saw this, I had a > lot of problem here too but then it worked. If you report problems on this list I'll do what I can to help. > Now I updated mysql to 5.0.2 and now mysqlcppapi is spitting out all > kind of errors. > > Is mysqlcppapi serious or just a hobby? There is no documentation on the > usage of it. I had to look at a few examples and examine the header-files. As the website says, it was forked from MySQL++ to provide an alternative that is a bit less broken. It's neither a work of love nor a mission-critical piece of infrastructure for anyone so it only gets maintained as people report bugs or when I find time to slowly improve it. It's not just a hobby, but I no longer use it for any code, either personal or professional. More documentation would obviously be nice, but I'm afraid I don't have time to add it myself at the moment. > And are you about to update the code so it will work with mysql 5.0.2 soon? Yes, as you've reported this I'll download the 5.0 sources and make sure mysqlcppapi works with it. I've had bad experiences with new releases from MySQL A.B and as I mainly develop with mysql on important projects at work I only use stable versions, so hadn't noticed this problem. > Here are the errors I got when compiling: > > /usr/local/mysql/include/mysql/mysql.h: In member function `bool > mysqlcppapi::Connection::shutdown()': > /usr/local/mysql/include/mysql/mysql.h:458: error: too few arguments to > function `int mysql_shutdown(MYSQL*, mysql_enum_shutdown_level)' > Connection.cc:215: error: at this point in file This shouldn't be hard to fix - IIRC they changed the signature of that function in the 4.x API as well, so there's already a #if around that function to test the MySQL version. Thanks for reporting the problem, I'll let you know when I've fixed it. It probably won't be until the New Year, as I'm about to go on holiday again for a few days. Season's Greetings to everyone reading this, jon -- -- "He who joyfully marches to music in rank and file has already earned my contempt. He has been given a large brain by mistake, since for him the spinal cord would fully suffice." - Albert Einstein |