List:MySQL++« Previous MessageNext Message »
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)'"
View as plain text  
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<T> 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?)
Thread
"undefined reference to `mysqlpp::Connection::connect(char const*, char const*, char const*, char const*, unsigned int)'"Alex24 Jul
  • Re: "undefined reference to `mysqlpp::Connection::connect(char const*,char const*, char const*, char const*, unsigned int)'"Warren Young24 Jul
    • Re: "undefined reference to `mysqlpp::Connection::connect(char const*, char const*, char const*, char const*, unsigned int)'"Alex25 Jul
      • Re: "undefined reference to `mysqlpp::Connection::connect(char const*, char const*, char const*, char const*, unsigned int)'"Warren Young26 Jul
Re: "undefined reference to `mysqlpp::Connection::connect(char const*, char const*, char const*, char const*, unsigned int)'"Warren Young26 Jul
Re: "undefined reference to `mysqlpp::Connection::connect(char const*, char const*, char const*, char const*, unsigned int)'"Alex27 Jul
  • Re: "undefined reference to `mysqlpp::Connection::connect(char const*, char const*, char const*, char const*, unsigned int)'"Warren Young27 Jul
Re: "undefined reference to `mysqlpp::Connection::connect(char const*, char const*, char const*, char const*, unsigned int)'"Alex27 Jul
  • Re: "undefined reference to `mysqlpp::Connection::connect(char const*, char const*, char const*, char const*, unsigned int)'"Warren Young28 Jul
    • Re: "undefined reference to `mysqlpp::Connection::connect(char const*, char const*, char const*, char const*, unsigned int)'"Alex28 Jul
      • Re: "undefined reference to `mysqlpp::Connection::connect(char const*, char const*, char const*, char const*, unsigned int)'"Warren Young28 Jul
        • Re: "undefined reference to `mysqlpp::Connection::connect(char const*, char const*, char const*, char const*, unsigned int)'"Alex28 Jul
          • Re: "undefined reference to `mysqlpp::Connection::connect(char const*,char const*, char const*, char const*, unsigned int)'"Warren Young28 Jul
            • Re: "undefined reference to `mysqlpp::Connection::connect(char const*, char const*, char const*, char const*, unsigned int)'"Alex29 Jul
              • Re: "undefined reference to `mysqlpp::Connection::connect(char const*, char const*, char const*, char const*, unsigned int)'"Warren Young29 Jul
                • Re: "undefined reference to `mysqlpp::Connection::connect(char const*, char const*, char const*, char const*, unsigned int)'"Alex29 Jul
                  • Re: "undefined reference to `mysqlpp::Connection::connect(char const*, char const*, char const*, char const*, unsigned int)'"Warren Young29 Jul
                    • Re: "undefined reference to `mysqlpp::Connection::connect(char const*, char const*, char const*, char const*, unsigned int)'"Alex29 Jul