>
> 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
> Do the examples run? See README-examples.txt.
simple1.cpp runs, yes. I think I fixed the connection error, but sadly, I
got another just here..
Error:
> ./src/CommandLine.cpp:24: error: no match for âoperator==â in
> âawi_config[0][3] == mysqlpp::nullâ
> ./lib/MySQLPP/type_info.h:316: note: candidates are: bool
> mysqlpp::operator==(const mysqlpp::mysql_type_info&, const
> mysqlpp::mysql_type_info&)
> ./lib/MySQLPP/type_info.h:329: note: bool
> mysqlpp::operator==(const std::type_info&, const mysqlpp::mysql_type_info&)
> ./lib/MySQLPP/type_info.h:343: note: bool
> mysqlpp::operator==(const mysqlpp::mysql_type_info&, const std::type_info&)
> ./src/CommandLine.cpp:29: error: no match for âoperator==â in
> âawi_config[0][2] == mysqlpp::nullâ
> ./lib/MySQLPP/type_info.h:316: note: candidates are: bool
> mysqlpp::operator==(const mysqlpp::mysql_type_info&, const
> mysqlpp::mysql_type_info&)
> ./lib/MySQLPP/type_info.h:329: note: bool
> mysqlpp::operator==(const std::type_info&, const mysqlpp::mysql_type_info&)
> ./lib/MySQLPP/type_info.h:343: note: bool
> mysqlpp::operator==(const mysqlpp::mysql_type_info&, const std::type_info&)
The code is a simple if-statement:
> if(awi_config[0][3] == null){
> TCLAP::ValueArg<char*> awi_tclap_mysql_pwd("p","mysql_pwd","MySQL
> Password",true,"admin","string");
> }else{
> TCLAP::ValueArg<char*> awi_tclap_mysql_pwd("p","mysql_pwd","MySQL
> Password",false,"admin","string");
> };
The declaration of awi_config is here:
> // Define variables for configuration.
> string awi_config[10][10];
> // Server.
> awi_config[0][0] = "";
> // Database.
> awi_config[0][1] = "";
> // User.
> awi_config[0][2] = "";
> // Password.
> awi_config[0][3] = "";
Are you able to spot what I'm NOW doing wrong? :)
Thanks.
2008/7/28 Warren Young <mysqlpp@stripped>
> On Jul 28, 2008, at 3:20 AM, Alex wrote:
>
> /usr/lib/libmysqlpp.so.2
>>
>
> You should uninstall the .deb you installed with apt-get.
>
> /usr/lib/libmysqlpp.so.3.0.4
>> /usr/local/lib/libmysqlpp.so.3.0.4
>>
>
> Why is it installed twice?
>
> I still get the error.
>>
>
> Do the examples run? See README-examples.txt.
>
> I had the idea that I need to "register" the new version in some way..?
>>
>
> Same ld.so.conf and ldconfig dance recommended both above and in
> README-Unix.txt.
>
>
> --
> MySQL++ Mailing List
> For list archives: http://lists.mysql.com/plusplus
> To unsubscribe:
> http://lists.mysql.com/plusplus?unsub=1
>
>
--
GamerzWoW - http://www.gamerzwow.net
| Thread |
|---|
| • "undefined reference to `mysqlpp::Connection::connect(char const*, char const*, char const*, char const*, unsigned int)'" | Alex | 24 Jul |
| • Re: "undefined reference to `mysqlpp::Connection::connect(char const*,char const*, char const*, char const*, unsigned int)'" | Warren Young | 24 Jul |
| • Re: "undefined reference to `mysqlpp::Connection::connect(char const*, char const*, char const*, char const*, unsigned int)'" | Alex | 25 Jul |
| • Re: "undefined reference to `mysqlpp::Connection::connect(char const*, char const*, char const*, char const*, unsigned int)'" | Warren Young | 26 Jul |
| • Re: "undefined reference to `mysqlpp::Connection::connect(char const*, char const*, char const*, char const*, unsigned int)'" | Warren Young | 26 Jul |
| • Re: "undefined reference to `mysqlpp::Connection::connect(char const*, char const*, char const*, char const*, unsigned int)'" | Alex | 27 Jul |
| • Re: "undefined reference to `mysqlpp::Connection::connect(char const*, char const*, char const*, char const*, unsigned int)'" | Warren Young | 27 Jul |
| • Re: "undefined reference to `mysqlpp::Connection::connect(char const*, char const*, char const*, char const*, unsigned int)'" | Alex | 27 Jul |
| • Re: "undefined reference to `mysqlpp::Connection::connect(char const*, char const*, char const*, char const*, unsigned int)'" | Warren Young | 28 Jul |
| • Re: "undefined reference to `mysqlpp::Connection::connect(char const*, char const*, char const*, char const*, unsigned int)'" | Alex | 28 Jul |
| • Re: "undefined reference to `mysqlpp::Connection::connect(char const*, char const*, char const*, char const*, unsigned int)'" | Warren Young | 28 Jul |
| • Re: "undefined reference to `mysqlpp::Connection::connect(char const*, char const*, char const*, char const*, unsigned int)'" | Alex | 28 Jul |
| • Re: "undefined reference to `mysqlpp::Connection::connect(char const*,char const*, char const*, char const*, unsigned int)'" | Warren Young | 28 Jul |
| • Re: "undefined reference to `mysqlpp::Connection::connect(char const*, char const*, char const*, char const*, unsigned int)'" | Alex | 29 Jul |
| • Re: "undefined reference to `mysqlpp::Connection::connect(char const*, char const*, char const*, char const*, unsigned int)'" | Warren Young | 29 Jul |
| • Re: "undefined reference to `mysqlpp::Connection::connect(char const*, char const*, char const*, char const*, unsigned int)'" | Alex | 29 Jul |
| • Re: "undefined reference to `mysqlpp::Connection::connect(char const*, char const*, char const*, char const*, unsigned int)'" | Warren Young | 29 Jul |
| • Re: "undefined reference to `mysqlpp::Connection::connect(char const*, char const*, char const*, char const*, unsigned int)'" | Alex | 29 Jul |