From: Warren Young Date: July 28 2008 12:36pm Subject: Re: "undefined reference to `mysqlpp::Connection::connect(char const*, char const*, char const*, char const*, unsigned int)'" List-Archive: http://lists.mysql.com/plusplus/7824 Message-Id: <488DBD60.3000304@etr-usa.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Alex wrote: >> Why is it installed twice? > > No idea. I have this: > > /usr/lib/libmysqlpp.so.2 > /usr/lib/libmysqlpp.so.3 > /usr/lib/libmysqlpp.so.3.0.4 > /usr/lib/libmysqlpp.so.2.0.7 > /usr/local/lib/libmysqlpp.so > /usr/local/lib/libmysqlpp.so.3 > /usr/local/lib/libmysqlpp.so.3.0.4 > Even after aptitude remove libmysql++-dev and aptitude purge libmysql++-dev. > > As for ldconfig: > > GamerzWoW /home/mangos/src: ldconfig --format=new > ldconfig: /usr/lib/libmysqlpp.so.3 is not a symbolic link Go into the MySQL++ source directory. As root, say "make uninstall". Then, remove all remaining MySQL++ files by hand; the uninstaller certainly won't find all of these. It will perhaps find more than you're aware of, however, so it's a good first step. Then, reinstall. All MySQL++ files installed should be under /usr/local, unless you've given --prefix to the configure script. >> if(awi_config[0][3] == null){ [snip] >> string awi_config[10][10]; mysqlpp::null is not equal to *any* std::string. It would make no sense to give mysqlpp::Null an operator== for std::string. Read this to learn why: http://tangentsoft.net/mysql++/doc/html/userman/tutorial.html#sql-null (So, how many times is it now that I've referred you to the documentation?)