From: Jonathan W. <jw...@mi...> - 2004-08-10 14:12:27
|
Hi Neil, According to http://dev.mysql.com/doc/mysql/en/mysql_shutdown.html the second argument was added in MySQL 4.1.3 I've been compiling and testing against 4.0 (since I'm still cautious about using beta code from mysql) Could you change the offending line in mysqlcppapi/Connection.cc to this and let me know if it works? #ifdef SHUTDOWN_DEFAULT bool suc = !(mysql_shutdown(m_sharedptr_connection.obj(), SHUTDOWN_DEFAULT)); #else bool suc = !(mysql_shutdown(m_sharedptr_connection.obj())); #endif I'll look for a better way of detecting which form to use before committing, but this should let you compile against the 4.1 API regards, jon "Neil Chakrabarty" <nch...@uc...> on 10/08/2004 15:00:08 To: Jonathan Wakely/MINTEL/GB@MINTEL, mys...@li... cc: Subject: RE: install problems Jon, Thanks for the help, I am using gcc 3.3.2. I am currently trying v1.9.3 but I now get the following error when running make. g++ -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I/usr/share/mysql//mysql/include -g -O2 -MT Connection.lo -MD -MP -MF .deps/Connection.Tpo -c Connection.cc -fPIC -DPIC -o .libs/Connection.o /usr/include/mysql/mysql.h: In member function `bool mysqlcppapi::Connection::shutdown()': /usr/include/mysql/mysql.h:458: error: too few arguments to function `int mysql_shutdown(MYSQL*, enum_shutdown_level)' Connection.cc:215: error: at this point in file When I look at Connection.cc line 215, I see the following: bool suc = !(mysql_shutdown(m_sharedptr_connection.obj())); The compiler is correct in saying it is missing an argument. -Neil -----Original Message----- From: Jonathan Wakely [mailto:jw...@mi...] Sent: Tuesday, August 10, 2004 4:20 AM To: mys...@li... Cc: nch...@uc... Subject: Re: install problems Neil, You don't say so, but I inferred from the errors you posted that you're using GCC 3.3 mysqlcppapi 1.9.0 uses too many non-standard C++ features (such as stdlib headers with .h appended) Please try v1.9.3 which contains numerous fixes to work with GCC 3.3 regards, jon http://www.mintel.com London Office: Mintel International Group Ltd (Mintel) 18-19 Long Lane London EC1A 9PL UK Tel: 020 7606 4533 Fax: 020 7606 5932 Chicago Office: Mintel International Group Ltd (Mintel) 213 West Institute Place Suite #208 Chicago IL 60610 USA Tel: 312 932 0400 Fax: 312 932 0469 Notice ******** This email may contain information that is privileged, confidential or otherwise protected from disclosure. It must not be used by, or its contents copied or disclosed to, persons other than the addressee. If you have received this email in error please notify the sender immediately and delete the email. Any views or opinions expressed in this message are solely those of the author, and do not necessarily reflect those of Mintel. No Mintel staff are authorised to make purchases using email or over the internet, and any contracts so performed are invalid. Warning ********** It is the responsibility of the recipient to ensure that the onward transmission, opening or use of this message and any attachments will not adversely affect their systems or data. Please carry out such virus and other checks, as you consider appropriate. |